Using ProductCart v3.11 I'm trying to use the openads.org v2.4 invocation code to display ads in the footer template using the openads "Source" parameter for targeting ads on the pages. So, if I'm in a particular category I can display ads relating to that category. Using openads (to my understsand) it is recommended to use the "Source" parameter for targeting the ads. So, I need a unique source that I can pull from the cart pages and was attempting to use the title tag <%=pcv_PageName%> so when the dynamic page is generated I could pull the unique keyword phrase into the script that calls the ad (in addition to putting a "Site - Source" limitation on all the ads). The below invocation code is the javascript tag but there are a few other tags I could use if needed (like image tag):
<script type='text/javascript'><!--//<![CDATA[ document.MAX_ct0 ='{clickurl}';
var m3_u = (location.protocol=='https:'?'https://ads.harlandhills.com/w ww/delivery/ajs.php':'http://ads.harlandhills.com/www/delive ry/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=3&source=<%=pcv_PageName%>&blockcampaign=1"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http')) { document.write ("&ct0=" + escape(document.MAX_ct0)); } if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><\/scr"+"ipt>"); //]]>--></script><noscript><a href='http://ads.harlandhills.com/www/delivery/ck.php?n=a79a b8aa&cb={random}' target='_blank'><img src='http://ads.harlandhills.com/www/delivery/avw.php?zoneid =3&source=<%=pcv_PageName%>&n=a79ab8aa&ct0={clickurl}' border='0' alt='' /></a></noscript>
This is not working though. Can anyone tell me what "source" you would recommend using from productcart to target the ads and how I can get this to work?
|