The DFP Click Macro allows the DFP ad-server to track any external clicks from a creative. This allows us to get total impression and total click metrics directly from the ad-server itself.
- Above is the HTML that should be inserted into the creative. The script tag creates a variable which functions as a placeholder for the DFP clickMacro code.
- This is how you would use the ClickMacro variable inside a JS file. The definition for the variable should remain in the HTML code as stated above.
- In any JS event that causes the page to change URL, simply add
clickMacro +in front of the URL.