What is a tracking pixel?
In some scenarios, an agency, advertiser, or other third party might decide to track DFP impressions with a tracking pixel. A tracking pixel is simply a server call that returns a transparent 1x1 image (normally a GIF file).
Where do I get a tracking pixel?
A third party typically sends a DFP publisher a URL. The publisher will insert the URL into a tracking pixel and traffic the pixel in DFP with a creative.
What are some examples of tracking pixels?
Most tracking pixels have the same format with slight variations in the style variable. It is up to the DFP publisher and the advertiser to choose which format to use. Here are a few examples:
<img src="TRACKING-PIXEL-URL-GOES-HERE" style="position:absolute; visibility:hidden">
<img src="TRACKING-PIXEL-URL-GOES-HERE" style="display:none">
<img src="TRACKING-PIXEL-URL-GOES-HERE" width="0" height="0">
Where do I put the tracking pixel in DFP?
If you want to add a tracking pixel to the creative code for a Flash or Custom type creative, simply insert the tracking pixel code at the top of the 'Creative Code' box in the creative's properties screen.
If you want to add a tracking pixel to an image creative in DFP, follow these instructions:
- Change the creative type from image to custom.
- In the custom creative's properties screen, upload the image creative.
- Click Apply a Template and select the 'Image Banner Open in New Window' template. You'll be prompted to enter the 'Image-Width' and 'Image-Height' for your image creative (ex. 728x90).
- Click Generate Code.
- In the 'Creative Code' box, you'll see code for the template you just applied. Insert your tracking pixel above this code. An example looks like this:
<img src="TRACKING-PIXEL-URL-GOES-HERE" width="0" height="0">
< !-- Template ID = 4439 Template Name = Image Banner - Open in New Window-->
<a href="%c%u" target="_blank">
< img width="728" height="90" border="0" src="%h/2315223/728x90Image.JPG">
< /a>
Source: DFP Support