The following presents a guideline on how Atlas 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 Atlas that looks similar to the following example:
<script language="JavaScript" type="text/javascript" src="https://view.atdmt.com/jview/hgfdrwr894128771prq/direct/01?click=">
</script>
<noscript>
<a href="https://click.atdmt.com/go/hgfdrwr894128771prq/direct/01" target="_blank">
<img border="0" src="https://view.atdmt.com/view/hgfdrwr894128771prq/direct/01"></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 language="JavaScript" type="text/javascript" src="https://view.atdmt.com/jview/hgfdrwr894128771prq/direct/01/%%CACHEBUSTER%%?click=%%CLICK_URL_ESC%%">
</script>
<noscript>
<a href="%%CLICK_URL_UNESC%%https://click.atdmt.com/go/hgfdrwr894128771prq/direct/01/%%CACHEBUSTER%%" target="_blank">
<img border="0" src="https://view.atdmt.com/view/hgfdrwr894128771prq/direct/01/%%CACHEBUSTER%%"></a>
</noscript>
IFRAME Code
Original Code
You should have received some IFRAME code from Atlas that looks similar to the following example:
<iframe src="https://view.atdmt.com/MOR/iview/hgfdrwr894128771prq/direct/01?click=" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="300" height="250">
<script language="JavaScript" type="text/javascript">
document.write('<a href="https://clk.atdmt.com/MOR/go/hgfdrwr894128771prq/direct/01/" target="_blank"><img src="https://view.atdmt.com/MOR/view/hgfdrwr894128771prq/direct/01/"/></a>');
</script>
<noscript>
<a href="https://clk.atdmt.com/MOR/go/hgfdrwr894128771prq/direct/01/" target="_blank"><img border="0" src="https://view.atdmt.com/MOR/view/hgfdrwr894128771prq/direct/01/" /></a>
</noscript>
</iframe>
Modified Code
What you need to do is modify the URL in the <IFRAME> and <A> tags as shown by the highlighted changes, The resulting tag should look similar to the following example:
<iframe src="https://view.atdmt.com/MOR/iview/hgfdrwr894128771prq/direct/01/%%CACHEBUSTER%%?click=%%CLICK_URL_ESC%%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="300" height="250">
<script language="JavaScript" type="text/javascript">
document.write('<a href="%%CLICK_URL_UNESC%%https://clk.atdmt.com/MOR/go/hgfdrwr894128771prq/direct/01/%%CACHEBUSTER%%" target="_blank"><img src="https://view.atdmt.com/MOR/view/hgfdrwr894128771prq/direct/01/%%CACHEBUSTER%%"/></a>');
</script>
<noscript>
<a href="%%CLICK_URL_UNESC%%https://clk.atdmt.com/MOR/go/hgfdrwr894128771prq/direct/01/%%CACHEBUSTER%%" target="_blank"><img border="0" src="https://view.atdmt.com/MOR/view/hgfdrwr894128771prq/direct/01/%%CACHEBUSTER%%" /></a>
</noscript>
</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>