Version 5.0
AdvertServe User Manual :: v5.0

Flite Click Tracking

Note Note

Manually making the changes documented here to activate click tracking is no longer necessary. As of version 3.0 the ad server will automatically make these changes for you when creating or editing a media. These examples are only provided as a reference so you can see if a particular code format is recognized or not. Please submit unrecognized codes to support for addition to our automated processing rules.

Original Code

You should have received some code from Flite that looks like the following:


<script type="text/javascript">
(function(){
  var r = top===self ? top.location.href : document.referrer || top.location.href, m = r.match(new RegExp("[A-Za-z]+:[/][/][A-Za-z0-9.-]+")), c = 'ENTER_CLICK_MACRO', e = encodeURIComponent;
  var src = ['//r.flite.com/syndication/adframe/i/aea7ae95-7e8b-429c-acb9-a6a1adc2c6bf?v=3&dep=FIF&p=',e(c),'&cb=',Math.random(),'&d=',e((m && m[0]) || r)].join('');
  document.write('<div style="border:0px;width:300px;position:relative;"><iframe style="border:0px;height:250px;width:300px;" scrolling="no" frameborder="0" seamless="seamless" allowTransparency="true" src="' + src + '"></iframe></div>');
})();
</script>
<noscript>
  <a style="text-decoration:none;display:block;border:0;" href="//r.flite.com/syndication/backuplink/i/aea7ae95-7e8b-429c-acb9-a6a1adc2c6bf?ct=ENTER_CLICK_MACRO" target="_blank">
    <img border="0" src="//r.flite.com/syndication/backupimage/i/aea7ae95-7e8b-429c-acb9-a6a1adc2c6bf?"/>
  </a>
</noscript>

Modified Code

What you need to do is replace the ENTER_CLICK_MACRO placeholder with %%CLICKTAG%% as shown by the highlighted changes:


<script type="text/javascript">
(function(){
  var r = top===self ? top.location.href : document.referrer || top.location.href, m = r.match(new RegExp("[A-Za-z]+:[/][/][A-Za-z0-9.-]+")), c = '%%CLICKTAG%%', e = encodeURIComponent;
  var src = ['//r.flite.com/syndication/adframe/i/aea7ae95-7e8b-429c-acb9-a6a1adc2c6bf?v=3&dep=FIF&p=',e(c),'&cb=',Math.random(),'&d=',e((m && m[0]) || r)].join('');
  document.write('<div style="border:0px;width:300px;position:relative;"><iframe style="border:0px;height:250px;width:300px;" scrolling="no" frameborder="0" seamless="seamless" allowTransparency="true" src="' + src + '"></iframe></div>');
})();
</script>
<noscript>
  <a style="text-decoration:none;display:block;border:0;" href="//r.flite.com/syndication/backuplink/i/aea7ae95-7e8b-429c-acb9-a6a1adc2c6bf?ct=%%CLICKTAG%%" target="_blank">
    <img border="0" src="//r.flite.com/syndication/backupimage/i/aea7ae95-7e8b-429c-acb9-a6a1adc2c6bf?"/>
  </a>
</noscript>