The following presents a guideline on how Emediate 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
Original Code
You should have received some JavaScript code from Emediate that looks similar to the following example:
<script src=’https://ad1.emediate.dk/EAS_tag.1.0.js’></script>
<script type=”text/javascript” language=”JavaScript” src=”https://ad1.emediate.dk/eas?camp=985468;cre=mu;js=y;target=_blank;ord=[timestamp];EASClick=”></script>
<noscript>
<a target=_blank href=”https://ad1.emediate.dk/eas?camp=985468;ty=ct”><img src=”https://ad1.emediate.dk/eas?camp=985468;cre=img;ord=[timestamp]” border=”0″ alt=”EmediateAd” width=”300″ height=”250″></a></noscript>
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 src=’https://ad1.emediate.dk/EAS_tag.1.0.js’></script>
<script type=”text/javascript” language=”JavaScript” src=”https://ad1.emediate.dk/eas?camp=985468;cre=mu;js=y;target=_blank;ord=%%CACHEBUSTER%%;EASClick=%%CLICK_URL_ESC%%”></script>
<noscript>
<a target=_blank href=”%%CLICK_URL_UNESC%%https://ad1.emediate.dk/eas?camp=985468;ty=ct”><img src=”https://ad1.emediate.dk/eas?camp=985468;cre=img;ord=%%CACHEBUSTER%%” border=”0″ alt=”EmediateAd” width=”300″ height=”250″></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>