Falk

The following presents a guideline on how Falk standard and rich media tags should be edited to count clicks in Google Ad Manager. In order to track clicks follow the procedure below:

JavaScript Code (Variant 1)

Original Code

You should have received some JavaScript code from Falk that looks similar to the following example:

<script type="text/javascript" language="javascript" src="https://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="https://a.as-eu.falkag.net/dat/cjf/32/64/36/57.js">
</script>

Modified Code

What you need to do is modify the URL in the <SCRIPT> tag as shown by the highlighted changes, The resulting tag should look similar to the following example:

<script type="text/javascript" language="javascript" src="https://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('%%CLICK_URL_UNESC%%') + '[url_plain]';
</script>
<script type="text/javascript" language="javascript" src="https://a.as-eu.falkag.net/dat/cjf/32/64/36/57.js">
</script>

JavaScript Code (Variant 2)

Original Code

You should have received some JavaScript code from Falk that looks similar to the following example:

<script type="text/javascript" language="javascript" src="https://as1.falkag.de/sel?cmd=jsc&kid=54777445&dat=4488221&xl=300&yl=250&opt=0&rdm=[timestamp]">
</script>
<noscript>
<a href="https://as1.falkag.de/sel?cmd=lnk&kid=54777445&dat=4488221&opt=0&rdm=[timestamp]" target="_blank">
<img src="https://as1.falkag.de/sel?cmd=ban&kid=54777445&dat=4488221&opt=0&rdm=[timestamp]" width=300 height=250 alt="" border=0>
</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, The resulting tag should look similar to the following example:

<script type="text/javascript" language="javascript" src="https://as1.falkag.de/sel?cmd=jsc&kid=54777445&dat=4488221&xl=300&yl=250&opt=0&rdm=%%CACHEBUSTER%%&cntadd=1&cnturl=%%CLICK_URL_ESC%%">
</script>
<noscript>
<a href="%%CLICK_URL_UNESC%%https://as1.falkag.de/sel?cmd=lnk&kid=54777445&dat=4488221&opt=0&rdm=%%CACHEBUSTER%%" target="_blank">
<img src="https://as1.falkag.de/sel?cmd=ban&kid=54777445&dat=4488221&opt=0&rdm=%%CACHEBUSTER%%" width=300 height=250 alt="" border=0>
</a>
</noscript>

Note

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

Use %%CLICK_URL_UNESC%% at the beginning of a link. Use %%CLICK_URL_ESC%% when the click-tracker is the parameter of another URL.

<a href="%%CLICK_URL_UNESC%%https://www.google.com">link</a>
<a href="https://www.google.com?rd_url=%%CLICK_URL_ESC%%">link</a>