Creative doesn't track clicks

Find out why your creative doesn't record clicks in DFP reports

For a third-party or custom creative to record clicks in DoubleClick for Publishers (DFP) reports, you need to insert a special click-tracker, or "macro", into the creative's code snippet. When the creative serves, DFP replaces the click macro with a text URL that counts a click and then redirects the visitor to the landing page.

The most common reason a creative doesn't track clicks is that the click-tracker isn't implemented correctly.

Add a click-tracker to your creative's code snippet

When you paste the creative code snippet from your advertiser or agency into DFP, the system will try to recognize the code. If the creative code is from a recognized creative vendor, click Insert macros to automatically insert the appropriate click-tracker and other macros into your code snippet.

If, however, DFP cannot recognize your creative code snippet, you need to add the click-tracker macro manually. Contact your creative code provider for guidance about where to insert the click-tracking macro.

Implement a click-tracker manually

For most creatives, you can use the standard click-tracking macro: %%CLICK_URL_UNESC%%. This macro should be placed where the click-through URL is triggered when a user clicks the creative, just before the click-through URL.

<a href="http://adpage.com"><img src="http://creativeagency.com/ad.png" /></a> Continue
        
<a href="%%CLICK_URL_UNESC%%http://adpage.com"><img src="http://creativeagency.com/ad.png" /></a>

If the click-tracker will be a parameter of another URL, use the %%CLICK_URL_ESC%% click-tracker macro. This will produce an "escaped" version of the click-tracker.

Test your creative's click-tracking

Preview your creative in DFP to confirm that click-tracking is implemented correctly. When you click on the previewed creative, you should see an intermediate page confirming your click was recorded. If you do not see this page, try using the alternate click macro in your tag, either escaped or unescaped, or ask your creative provider to confirm placement.

Was this article helpful?
How can we improve it?