Version 5.0
AdvertServe User Manual :: v5.0

Adform 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.

JavaScript Code

Original Code

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


<script language="javascript" src="http://track.adform.net/adfscript/?bn=43547"></script>
<noscript>
<a href="http://track.adform.net/C/?bn=43547;C=0" TARGET="_blank">
<img src="http://track.adform.net/adfserve/?bn=43547;srctype=4;ord=[timestamp]" border="0" width="468" height="60" alt="">
</a>
</noscript>

Modified Code

What you need to do is modify the URL in the <SCRIPT> and <A> tags as shown by the highlighted changes:


<script language="javascript" src="http://track.adform.net/adfscript/?bn=43547;click=%%CLICKLINK%%"></script>
<noscript>
<a href="%%CLICKLINK%%http://track.adform.net/C/?bn=43547;C=0" TARGET="_blank">
<img src="http://track.adform.net/adfserve/?bn=43547;srctype=4;ord=[timestamp]" border="0" width="468" height="60" alt="">
</a>
</noscript>

Note Note

The ad server recognizes the [timestamp] placeholder and will automatically replace it with a timestamp. It is not necessary to convert it to the %%TIMESTAMP%% macro manually.

IFRAME

Original Code

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


<iframe name="CPbanner871552" src="http://track.adform.net/adfscript/?bn=714017;cpjs=2;ord=YourRandomNumber" width="980" height="150" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>

Modified Code

What you need to do is modify the URL in the <IFRAME> tag as shown by the highlighted changes:


<iframe name="CPbanner871552" src="http://track.adform.net/adfscript/?bn=714017;click=%%CLICKLINK%%;cpjs=2;ord=YourRandomNumber" width="980" height="150" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>

Note Note

The ad server recognizes the YourRandomNumber placeholder and will automatically replace it with a random number. It is not necessary to convert it to the %%RANDOM%% macro manually.