Jump to content

rich83638

Approved members
  • Posts

    1
  • Joined

  • Last visited

About rich83638

rich83638's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I've used this technique in the past on html banners wrapping the ad code in an element then capturing the propagated click within to load a click tracking pixel, seems to work if your only worried about tracking one click on the ad. I used a generic pixel here but a third party click tracking pixel would work as well, which is why we were using it. This doesn't interfere with the links in the ad code so works with 3rd party tags and would work with the iframe as well I believe, I've tested it with async js and iframe tags. <div id="(wrapper-id)">"; <Ad code here> </div> <script type="text/javascript" > document.getElementById("(wrapper-id)").addEventListener("click", function(event) { var ccUrl = "{clickurl}{url_prefix}/pixel.png?ord={random}"; new Image(1,1).src = ccUrl; }, true); </script>
×
×
  • Create New...