Version 5.0
AdvertServe User Manual :: v5.0

Atlas 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

Original Code

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


<script language="JavaScript" type="text/javascript" src="http://view.atdmt.com/jview/yhkxxbcl00100018stm/direct/01?click=">
</script>
<noscript>
<a href="http://click.atdmt.com/go/yhkxxbcl00100018stm/direct/01" target="_blank">
<img border="0" src="http://view.atdmt.com/view/yhkxxbcl00100018stm/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:


<script language="JavaScript" type="text/javascript" src="http://view.atdmt.com/jview/yhkxxbcl00100018stm/direct/01/%%RANDOM%%?click=%%CLICKLINK%%">
</script>
<noscript>
<a href="%%CLICKLINK%%http://click.atdmt.com/go/yhkxxbcl00100018stm/direct/01/%%RANDOM%%" target="_blank">
<img border="0" src="http://view.atdmt.com/view/yhkxxbcl00100018stm/direct/01/%%RANDOM%%"></a>
</noscript>

Warning Warning

Make sure to preview the media and test clicking on it after it's created. If it fails to click through properly, try changing the bold %%CLICKLINK%% in the <SCRIPT> tag to %%CLICKTAG%% instead. This is sometimes necessary if Atlas themselves are sourcing the ad from another third party.

IFRAME

Original Code

You should have received some IFRAME code from Atlas that looks like the following:


<iframe src="http://view.atdmt.com/MOR/iview/thnwvnyt0150000152mor/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="http://clk.atdmt.com/MOR/go/thnwvnyt0150000152mor/direct/01/" target="_blank"><img src="http://view.atdmt.com/MOR/view/thnwvnyt0150000152mor/direct/01/"/></a>');
</script>
<noscript>
<a href="http://clk.atdmt.com/MOR/go/thnwvnyt0150000152mor/direct/01/" target="_blank"><img border="0" src="http://view.atdmt.com/MOR/view/thnwvnyt0150000152mor/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:


<iframe src="http://view.atdmt.com/MOR/iview/thnwvnyt0150000152mor/direct/01/%%RANDOM%%?click=%%CLICKLINK%%" 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="%%CLICKLINK%%http://clk.atdmt.com/MOR/go/thnwvnyt0150000152mor/direct/01/%%RANDOM%%" target="_blank"><img src="http://view.atdmt.com/MOR/view/thnwvnyt0150000152mor/direct/01/%%RANDOM%%"/></a>');
</script>
<noscript>
<a href="%%CLICKLINK%%http://clk.atdmt.com/MOR/go/thnwvnyt0150000152mor/direct/01/%%RANDOM%%" target="_blank"><img border="0" src="http://view.atdmt.com/MOR/view/thnwvnyt0150000152mor/direct/01/%%RANDOM%%" /></a>
</noscript>
</iframe>

Warning Warning

Make sure to preview the media and test clicking on it after it's created. If it fails to click through properly, try changing the bold %%CLICKLINK%% in the <IFRAME> tag to %%CLICKTAG%% instead. This is sometimes necessary if Atlas themselves are sourcing the ad from another third party.