Zedo

The following presents a guideline on how Zedo 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 (Simple)

Original Code

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

<script language="JavaScript" src="https://c7.zedo.com/jsc/fm.js?n=839&c=76/2&d=87&s=21&w=300&h=250&l=[CLICK_TAG]&z=[RANDOM_NUMBER]">
</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 language="JavaScript" src="https://c7.zedo.com/jsc/fm.js?n=839&c=76/2&d=87&s=21&w=300&h=250&l=%%CLICK_URL_ESC%%&z=%%CACHEBUSTER%%">
</script>

JavaScript Code (Advanced)

Original Code

You should have received some JAVASCRIPT code from Zedo that looks similar to the following example:

<script language="JavaScript">
var zflag_nid="6548"; var zflag_cid="985"; var zflag_sid="544"; var zflag_width="300";
var zflag_height="250"; var zflag_sz="28"; var zflag_charset="utf-8";
var zflag_click="[INSERT_CLICK_TRACKER_MACRO]";
</script>
<script language="JavaScript" src="https://d2.zedo.com/jsc/d2/fo.js">
</script>

Modified Code

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

<script language="JavaScript">
var zflag_nid="6548"; var zflag_cid="985"; var zflag_sid="544"; var zflag_width="300";
var zflag_height="250"; var zflag_sz="28"; var zflag_charset="utf-8";
var zflag_click="%%CLICK_URL_ESC%%";
</script>
<script language="JavaScript" src="https://d2.zedo.com/jsc/d2/fo.js">
</script>

IFRAME Code

Original Code

You should have received some IFRAME code from Zedo that looks similar to the following example:

<iframe src="https://d3.zedo.com/jsc/d3/ff2.html?n=345;c=75;s=2;d=45;w=728;h=90" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=300 height=250></iframe>

Modified Code

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

<iframe src="https://d3.zedo.com/jsc/d3/ff2.html?n=345;c=75;s=2;d=45;w=728;h=90;l=%%CLICK_URL_ESC%%" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=300 height=250></iframe>

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>