Version 5.0
AdvertServe User Manual :: v5.0

Falk 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 (Format #1)

Original Code

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


<script type="text/javascript" language="javascript" src="http://a.as-eu.falkag.net/dat/dlv/aslmain.js">
</script>
<script language="JavaScript" type="text/javascript">
Ads_kid=0;Ads_bid=0;Ads_xl=0;Ads_yl=0;Ads_xp='';Ads_sec=0;
Ads_yp='';Ads_opt=0;Ads_wrd='';Ads_prf='';Ads_par='';Ads_channels='';
</script>
<script type="text/javascript" language="javascript" src="http://a.as-eu.falkag.net/dat/cjf/00/23/16/45.js">
</script>

Modified Code

What you need to do is add a variable in the <SCRIPT> code as shown by the highlighted changes:


<script type="text/javascript" language="javascript" src="http://a.as-eu.falkag.net/dat/dlv/aslmain.js">
</script>
<script language="JavaScript" type="text/javascript">
Ads_kid=0;Ads_bid=0;Ads_xl=0;Ads_yl=0;Ads_xp='';Ads_sec=0;
Ads_yp='';Ads_opt=0;Ads_wrd='';Ads_prf='';Ads_par='';Ads_channels='';
Ads_cnturl=unescape('%%CLICKTAG%%') + '[url_plain]';
</script>
<script type="text/javascript" language="javascript" src="http://a.as-eu.falkag.net/dat/cjf/00/23/16/45.js">
</script>

JavaScript Code (Format #2)

Original Code

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


<script type="text/javascript" language="javascript" src="http://as1.falkag.de/sel?cmd=jsc&kid=01434324&dat=0435435&xl=120&yl=60&opt=0&rdm=[timestamp]">
</script>
<noscript>
<a href="http://as1.falkag.de/sel?cmd=lnk&kid=01434324&dat=0435435&opt=0&rdm=[timestamp]" target="_blank">
<img src="http://as1.falkag.de/sel?cmd=ban&kid=01434324&dat=0435435&opt=0&rdm=[timestamp]" width=120 height=60 alt="" border=0>
</a>
</noscript>

Modified Code

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


<script type="text/javascript" language="javascript" src="http://as1.falkag.de/sel?cmd=jsc&kid=01434324&dat=0435435&xl=120&yl=60&opt=0&rdm=[timestamp]&cntadd=1&cnturl=%%CLICKTAG%%">
</script>
<noscript>
<a href="%%CLICKLINK%%http://as1.falkag.de/sel?cmd=lnk&kid=01434324&dat=0435435&opt=0&rdm=[timestamp]" target="_blank">
<img src="http://as1.falkag.de/sel?cmd=ban&kid=01434324&dat=0435435&opt=0&rdm=[timestamp]" width=120 height=60 alt="" border=0>
</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.