There are two types of DFP click-tracking macros:
-
Unescaped click macro:
%%CLICK_URL_UNESC%
-
Escaped click macro:
%%CLICK_URL_ESC%%
Use an unescaped click macro when the creative hosted by Adform is a standard image (.gif/.jpg). Use the escaped click macro for Flash (.swf) creatives. Not sure which file type the creative is? You can preview the ad and right-click it. If you see a Save Image As... or Save Picture As... option appear in the right-click menu, the creative is a standard image. If you see an About Adobe Flash Player... option, the creative is a Flash ad.
What you will do in order to track clicks is add the ";click=" and %%CLICK_URL_UNESC%% (for image type creatives) or %%CLICK_URL_ESC%% (for Flash type creatives) into the redirect string. [timestamp] is exchanged for %%CACHEBUSTER%%
When creative hosted in Adform is Flash (.swf) type:
<script language="javascript" src="http://track.adform.net/adfscript/?bn=43547;click=%%CLICK_URL_ESC%%"></script><noscript>
<a href="%%CLICK_URL_UNESC%%http://track.adform.net/C/?bn=43547;C=0" target="_blank">
<img src="http://track.adform.net/adfserve/?bn=43547;srctype=4;ord=%%CACHEBUSTER%%" border="0" width="468" height="60" alt="">
</a>
</noscript>
When creative hosted in Adform is standard image (.gif/.jpg):
<script language="javascript" src="http://track.adform.net/adfscript/?bn=43547;click=%%CLICK_URL_UNESC%%"></script><noscript>
<a href="%%CLICK_URL_UNESC%%http://track.adform.net/C/?bn=43547;C=0" target="_blank">
<img src="http://track.adform.net/adfserve/?bn=43547;srctype=4;ord=%%CACHEBUSTER%%" border="0" width="468" height="60" alt="">
</a>
</noscript>
Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.
Last updated: Friday, April 22 2011