Control Panel User Manual

AdvertPRO Click Tracking

Original Code

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

<!-- BEGIN ADVERTPRO CODE BLOCK -->

<SCRIPT language="JavaScript" type="text/javascript">
document.write('<SCR'+'IPT src="http://www.example.com/advertpro/servlet/view/banner/javascript/zone?zid=7&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
</SCRIPT>
<NOSCRIPT>
<IFRAME src="http://www.example.com/advertpro/servlet/view/banner/html/zone?zid=7&pid=0" height="600" width="120" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
<A href="http://www.example.com/advertpro/servlet/click/zone?zid=7&pid=0&lookup=true&position=1" target="_top">
<IMG src="http://www.example.com/advertpro/servlet/view/banner/image/zone?zid=7&pid=0&position=1" height="600" width="120" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</IFRAME>
</NOSCRIPT>

<!-- END ADVERTPRO CODE BLOCK -->

Modified Code

What you need to do is modify the URLs in the <SCRIPT>, <IFRAME>, and <A> tags like this:

<!-- BEGIN ADVERTPRO CODE BLOCK -->

<SCRIPT language="JavaScript" type="text/javascript">
document.write('<SCR'+'IPT src="http://www.example.com/advertpro/servlet/view/banner/javascript/zone?zid=7&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'&encode=1&cturl=%%CLICKTAG%%" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
</SCRIPT>
<NOSCRIPT>
<IFRAME src="http://www.example.com/advertpro/servlet/view/banner/html/zone?zid=7&pid=0&encode=1&cturl=%%CLICKTAG%%" height="600" width="120" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
<A href="http://www.example.com/advertpro/servlet/click/zone?zid=7&pid=0&lookup=true&position=1&encode=1&cturl=%%CLICKTAG%%" target="_top">
<IMG src="http://www.example.com/advertpro/servlet/view/banner/image/zone?zid=7&pid=0&position=1" height="600" width="120" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</IFRAME>
</NOSCRIPT>

<!-- END ADVERTPRO CODE BLOCK -->

Warning Warning

It is extremely important that the cturl parameter be added to the end of the URLs in every <SCRIPT>, <IFRAME>, and <A> tag. AdvertPRO may misinterpret your click tracking URL if it is not the last parameter. This is due to the fact that AdvertPRO uses methods not standard to the HTTP URL specification to parse parameters in an effort to be compatible with third party ad servers that do not properly URL encode their tracking URLs.

Additionally, if you must also specify referrer or redirect parameters in the URLs, they must be in this order: referrer, cturl, redirect at the end of the URLs.

Note Note

For third party ad servers, you will need to replace %%CLICKTAG%% with their click tracking macro. Be aware that some third party ad servers cannot handle redirects being sent back to them in escaped/encoded form. You can deal with this by changing the value of the encode parameter to zero. It may also be changed to a value greater than zero should multiple escaping/encoding passes be required.