Tracking clicks and impressions for an ad campaign is vital for measuring performance and effectiveness.
Although not mandatory, we strongly recommend that you track clicks on the Bucksense console, even if you are hosting your creatives on a 3rd party Ad server.
To set up Bucksense tracking, you simply need to insert the provided Bucksense click tracking and cache busting macros in the code, in order to let our system know if your campaigns are being served correctly and performing.
See more details about how clicks are tracked with Ad Tags here

Click Tracking macro %%CLICK_URL%%: you need to add this macro in your 3rd party Ad Tag in order for Bucksense to track clicks properly.
Click URL Encoded %%CLICK_URL_ENC%%: use this macro if you need to add the click Tracking as a parameter in a URL.
Cache Busting macro %%CACHE_BUSTER%%: this macro allows you to properly counting impressions. By adding it in your 3rd party Ad Tag, a new call will made to your Ad server every time the Ad tag is called.

Below we will show you examples related to the main Ad Servers, about how properly insert the Click Tracking, Click URL Encoded and Cache Busting macros in your 3rd party Ad tag, if you are hosting your creatives on one of these Ad Servers:

 

  • ADFORM
    (in this sample search for %%CLICK_URL%% and %%CACHE_BUSTER%%)

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=123456;click=%%CLICK_URL%%"></script>
    <noscript>
     <a href="%%CLICK_URL%%http://track.adform.net/C/?bn=123456" target="_blank">
     <img src="http://track.adform.net/adfserve/?bn=123456;srctype=4;ord= %%CACHE_BUSTER%%" border="0" width="930" height="180" alt=""/>
     </a>
    </noscript>
  • ADTECH
    (in this sample search for %%CLICK_URL_ENC%%)

    <!--IFRAME Tag (General Redirect) // Page: 728x90 // -->
    <IFRAME WIDTH="728" HEIGHT="90" SCROLLING="No" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" SRC="http://adserver.adtech.de/adiframe|3.0|1234|1234|0|1234|ADTECH;AdId=1234;BnId=-1;;target=_blank;misc=[timestamp];rdclick=%%CLICK_URL_ENC%%">
     <script language="javascript" src="http://adserver.adtech.de/addyn|3.0|1234|1234|0|1234|ADTECH;AdId=1234;BnId=-1;;loc=700;></script>
     <noscript><a href="http://adserver.adtech.de/adlink|3.0|1234|1234|0|1234|ADTECH;AdId=9479763;BnId=-1;;loc=300;misc=[timestamp]" target="_blank;AdId=9479763;BnId=-1;"><img src="http://adserver.adtech.de/adserv|3.0|1234|1234|0|1234|ADTECH;loc=300;misc=[timestamp]" border="0" width="728" height="90"></a></noscript>
    </IFRAME>
    <!-- End of IFRAME Tag -->
  • AJILION
    (in this sample search for %%CLICK_URL_ENC%%, additional macros are also present like %%PLACE_ID% and %%DEVICE_IOS_IFA%% check here the full Macros list )

    <script type="text/javascript" src="https://ad.ajillionmax.com/ad/26623/tag.js?mediatype=<Web/MobileWeb/App>&pubid=%%PLACE_ID%%&uid=%%DEVICE_IOS_IFA%%"&click=%%CLICK_URL_ENC%%></script>
  • APPNEXUS
    If you use an AppNexus placement tag as a creative, you need to use the format below
    (in this sample search for %%CLICK_URL_ENC%% and %%CACHE_BUSTER%%)

    <!-- BEGIN JS TAG - 728x90 < - DO NOT MODIFY --> <SCRIPT SRC="http://ib.adnxs.com/ttj?id=1812103&cb=%%CACHE_BUSTER%%&pubclick=%%CLICK_URL_ENC%%" TYPE="text/javascript"></SCRIPT>
    <!-- END TAG →
  • DOUBLECLICK
    Please use the {CLICK_URL_ENC} macro, if you need to pass an encoded URL in a DoubleClick tag.
    (in this sample search for %%CLICK_URL_ENC%% and %%CACHE_BUSTER%%)

    <script language="JavaScript" src="http://ad.doubleclick.net/adj/1234.567.890/;net=123456;sz=728x90;click=%%CLICK_URL_ENC%%;ord=%%CACHE_BUSTER%%?"
     type="text/javascript"></script>
     <noscript><a href="http://ad.doubleclick.net/jump/1234.567.890/;net=123456;sz=728x90;ord=%%CACHE_BUSTER%%?"
     target="_blank"><img src="http://ad.doubleclick.net/ad/1234.567.890/;net=123456;sz=728x90;ord=%%CACHE_BUSTER%%" width="728" height="90" border="0"
     alt=""></a></noscript>
  • DOUBLECLICK (Ins Tag)
    You don’t need to add the Cachebuster macro in the Ins type Tag since DCM will fill it automatically.
    (in this sample search for %%CLICK_URL%%)

    <html> <head> </head> <body> <ins class='dcmads' style='display:inline-block;width:320px;height:50px' data-dcm-placement='N5071.792587.AIRPUSH.COM/B20723615.214332513' data-dcm-rendering-mode='script' data-dcm-click-tracker='%%CLICK_URL%%' data-dcm-https-only data-dcm-resettable-device-id='' data-dcm-app-id=''> <script src='https://www.googletagservices.com/dcm/dcmads.js'></script> </ins> </body> </html>
  • DOUBLEVERIFY
    DoubleVerify tags will wrap the tag of your adserver.
    So, if you’re using DoubleVerify with Atlas, the tag will look like the following code. Note that the Atlas tag is contained in the “this.tagsrc” variable. “This.altrc” must be modified to contain a selectable PSA, otherwise the creative will be rejected.
    Consult your DoubleVerify account for more information on how to implement the alternate PSA.
    (in this sample search for %%CLICK_URL%%, %%CLICK_URL_ENC%% and %%CACHE_BUSTER%%)

    <script language="javascript" type="text/javascript">
     new function() {
     this.rand = Math.floor((Math.random() + "") * 1000000000000);
     this.dvparams = 'ctx=111111&cmp=22222222&plc=3333333333&sid=444444444';
     this.dvregion = '0';
     this.tagsrc = <iframe src="http://view.atdmt.com/CNT/iview/1234567890/direct;wi.160;hi.600/01%%CACHE_BUSTER%%?click=%%CLICK_URL_ENC%%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="160" height="600"> <scr'+'ipt language="Javascr'+'ipt" type="text/javascr'+'ipt"> document.write('\'&lt;a href="%%CLICK_URL%%}http://clk.atdmt.com/CNT/go/1234567890/direct;wi.160;hi.600/01/" target="_blank"&gt;&lt;img src="http://view.atdmt.com/CNT/view/195860978/direct;wi.160;hi.600/01/%%CACHE_BUSTER%%"/&gt;&lt;/a&gt;\');</scr'+'ipt><noscr'+'ipt><a href="%%CLICK_URL%%http://clk.atdmt.com/CNT/go/1111111111/direct;wi.160;hi.600/01/" target="_blank"><img border="0" src="http://view.atdmt.com/CNT/view/1234567890/direct;wi.160;hi.600/01/%%CACHE_BUSTER%%" /></a></noscr'+'ipt></iframe>';
     this.altsrc = '<style>\n .container {\n border: 1px solid #3b599e;\n overflow: hidden;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#315d8c\',
     endColorstr=\'#84aace\'); /* for IE */\n background: -webkit-gradient(linear, left top, left bottom, from(#315d8c), to(#84aace)); /* for webkit browsers */\n
     background: -moz-linear-gradient(top, #315d8c, #84aace); /* for firefox 3.6+ */ \n }\n .cloud {\n color: #fff;\n position: relative;\n font: 100%
     "Times New Roman", Times, serif;\n text-shadow: 0px 0px 10px #fff;\n line-height: 0;\n }\n </style>\n <scr'+'ipt type="text/javascr'+'ipt">\n
     function cloud()
     {\n var b1 = "<div class=\\"cloud\\" style=\\"font-size: ";\n var b2 = "px; position: absolute; top: ";\n
     document.write(b1+"300px; width: 300px; height: 300"+b2+"34px; left: 28px;\\">.<\\/div>");\n document.write(b1+"300px; width: 300px; height:
     300"+b2+"46px; left: 10px;\\">.<\\/div>");\n document.write(b1+"300px; width: 300px; height: 300"+b2+"46px; left: 50px;\\">.<\\/div>");\n
     document.write(b1+"400px; width: 400px; height: 400"+b2+"24px; left: 20px;\\">.<\\/div>");\n }\n
     function clouds(){\n var top = [];\n var left = \-10;\n var a1 = "<div style=
     \\
     "position: relative; top: ";\n
     var a2 = "px; left: ";\n var a3 = "px;
     \\
     "><scr'+'ipt type=\\"text/javascr'+'ipt\\">cloud();<\\/scr'+'ipt><\\/div>";\n fo
     r(i=0; i<8; i++)\n {\n
     document.write(a1+top[0]\+a2+left+a3);\n document.write(a1+top[1]\+a2+left+a3);\n document.write(a1+top[2]\+a2+left+a3);\n
     document.write(a1+top[3]\+a2+left+a3); \n if(i==4)\n {\n left = -90;\n top = [\'0\',\'160\',\'320\',\'480\'];\n }\n else left \+= 160;\n }\n }\n
     </scr'+'ipt>\n<div class="container" style="width: 160px; height: 600px;">\n <scr'+'ipt type="text/javascr'+'ipt">clouds();</scr'+'ipt>\n</div>';
    
    this.callbackName = '\__dvredirect_callback_' + this.rand;
     var thisRedirect = this;
     window[this.callbackName] = function () { return thisRedirect; };
    
    var src = 'http://rtbcdn.doubleverify.com/bsredirect5.js?callback=' + this.callbackName;
     document.write('<scr' + 'ipt src=' + src + '></scr' + 'ipt>');
     }
     </script>
  • ONE by AOL
    (in this sample search for %%CLICK_URL_ENC%%)

    <!--IFRAME Tag (General Redirect) // Page: 728x90 // -->
     <IFRAME WIDTH="728" HEIGHT="90" SCROLLING="No" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" SRC="http://adserver.adtech.de/adiframe|3.0|1234|1234|0|1234|ADTECH;AdId=1234;BnId=-1;;target=_blank;misc=[timestamp];rdclick=%%CLICK_URL_ENC%%">
     <script language="javascript" src="http://adserver.adtech.de/addyn|3.0|1234|1234|0|1234|ADTECH;AdId=1234;BnId=-1;;loc=700;target=_blank;misc=[timestamp];rdclick=%%CLICK_URL_ENC%%"></script>
     <noscript><a href="http://adserver.adtech.de/adlink|3.0|1234|1234|0|1234|ADTECH;AdId=9479763;BnId=-1;;loc=300;misc=[timestamp]" target="_blank;AdId=9479763;BnId=-1;"><img src="http://adserver.adtech.de/adserv|3.0|1234|1234|0|1234|ADTECH;loc=300;misc=[timestamp]" border="0" width="728" height="90"></a></noscript>
     </IFRAME>
     <!-- End of IFRAME Tag -->
  • POINTROLL
    (in this sample search for %%CLICK_URL%%)

     <script type="text/javascript">
     function pr_swfver(){
     var osf,osfd,i,axo=1,v=0,nv=navigator;
     if(nv.plugins&&nv.mimeTypes.length){osf=nv.plugins["Shockwave Flash"];if(osf&&osf.description){osfd=osf.description;v=parseInt(osfd.substring(osfd.indexOf(".")-2))}}
     else{try{for(i=5;axo!=null;i++){axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);v=i}}catch(e){}}
     return v;
     }
     var pr_d=new Date();pr_d=pr_d.getDay()+"|"+pr_d.getHours()+":"+pr_d.getMinutes()+"|"+-pr_d.getTimezoneOffset()/60;
     var pr_postal="";
     var pr_data="";var pr_ies="";
    
    var pr_redir="%%CLICK_URL%%";
    
    var pr_nua=navigator.userAgent.toLowerCase();
     var prHost=(("https:"==document.location.protocol)?"https://":"http://");var pr_sec=((prHost=='https://')?'&secure=1':'');
     var pr_pos="",pr_inif=(window!=top);
     if(pr_inif){try{pr_pos=(typeof(parent.document)!="unknown")?(((typeof(inDapIF)!="undefined")&&(inDapIF))||(parent.document.domain==document.domain))?"&pos=s":"&pos=x":"&pos=x";}
     catch(e){pr_pos="&pos=x";}if(pr_pos=="&pos=x"){var pr_u=new RegExp("[A-Za-z]+:[/][/][A-Za-z0-9.-]+");var pr_t=this.window.document.referrer;
     var pr_m=pr_t.match(pr_u);if(pr_m!=null){pr_pos+="&dom="+pr_m[0];}}else{if(((typeof(inDapMgrIf)!="undefined")&&(inDapMgrIf))||((typeof(isAJAX)!="undefined")&&(isAJAX))){pr_pos+="&ajx=1"}}}
     if(pr_postal!=""){var przipmatch=/^\d{5}$/;if(przipmatch.test(pr_postal)){pr_pos+="&postal="+pr_postal;}}
     if((pr_data!="")&&(pr_data.indexOf("&")<0)){pr_pos+="&data="+pr_data;}
     if((pr_ies!="")&&(pr_ies.indexOf("&")<0)){pr_pos+="&ies="+pr_ies;}
     var pr_s="ads.pointroll.com/PortalServe/?pid=xxxx&flash="+pr_swfver()+"&time="+pr_d+"&redir="+pr_redir+pr_pos+pr_sec+"&r="+Math.random();
     document.write("<scr"+"ipt type='text/javascript' src='"+prHost+pr_s+"'></scr"+"ipt>");
     </script>
  • SIZMEK
    (in this sample search for %%CLICK_URL%%, %%CLICK_URL_ENC%% and %%CACHE_BUSTER%%)

    <script src="
     http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=23744470&PluID=0&w=320&h=50&ncu=%%CLICK_URL_ENC%%&ord=%%CACHE_BUSTER%%ucm=true"></script
     >
     <noscript> <a href="%%CLICK_URL%%http%3A%2F%2Fbs.serving-sys.com%2FBurstingPipe%2FadServer.bs%3Fcn%3Dbrd%26FlightID%3D23744470%26Page%3D%26PluID%3D0%26Pos%3D956036418" target="_blank"><img src="
     http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=bsr&FlightID=23744470&Page=&PluID=0&Pos=956036418
     " border=0 width=320 height=50></a> </noscript>