CPMStar Click Macro for DFP

I’ve been contacting my ad networks since I’ve been trying to insert click macros into DFP to start tracking the clicks that my ad creatives are receiving.

If you need to know where to put the DFP click macro for CPMStar, follow my example below:

<script type="text/javascript" language="Javascript">
// <![CDATA[
var cpmstar_rnd=Math.round(Math.random()*999999);
var cpmstar_pid=1234567; // Fill in your pid
var click_tracking='%%CLICK_URL_ESC_ESC%%';
document.writeln("<SCR"+"IPT language='Javascript' src='http://server.cpmstar.com/view.aspx?poolid="+cpmstar_pid+"&script=1&rnd="+cpmstar_rnd+"&click="+click_tracking+"'></SCR"+"IPT>");
// ]]>
</script>

I can verify that the above code worked for me and my CPMStar clicks started tracking in DFP.

One thought on “CPMStar Click Macro for DFP

  1. Max Reply

    Can confirm this still works as of Mar 13, 2014.

    If you’re an idiot like me, kust make sure you swap the entire tag and replace your pid. Instead of just adding this line:

    var click_tracking=’%%CLICK_URL_ESC_ESC%%’;

Leave a Reply

Your email address will not be published. Required fields are marked *