Version 5.0
AdvertServe User Manual :: v5.0

AdOcean 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.

Original Code

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


<script type="text/javascript"><!--<![CDATA[
/* (c)AdOcean 2003-2011 */
/* PLACEMENT: test.test_publ.banner */
if(location.protocol.substr(0,4)=='http')document.write(unescape('%3C')+'script id="test.test_publ.banner" src="'+location.protocol+'//myao.adocean.pl/_'+(new Date()).getTime()+'/ad.js?id=pzLnHfuad3hkDlx1qjWbTTPa0NbivcNcMqWaY4bVvon.k7/x='+screen.width+'/y='+screen.height+'" type="text/javascript"'+unescape('%3E%3C')+'/script'+unescape('%3E'));
//]]>--></script>

Modified Code

What you need to do is modify the URL in the <SCRIPT> tag as shown by the highlighted changes:


<script type="text/javascript"><!--<![CDATA[
/* (c)AdOcean 2003-2011 */
/* PLACEMENT: test.test_publ.banner */
if(location.protocol.substr(0,4)=='http')document.write(unescape('%3C')+'script id=" test.test_publ.banner " src="'+location.protocol+'//myao.adocean.pl/_'+(new Date()).getTime()+'/ad.js?id=pzLnHfuad3hkDlx1qjWbTTPa0NbivcNcMqWaY4bVvon.k7/redir=%%CLICKLINK%%/x='+screen.width+'/y='+screen.height+'" type="text/javascript"'+unescape('%3E%3C')+'/script'+unescape('%3E'));
//]]>--></script>