Clear search
Close search
Google apps
Main menu

Pixel tracking in third-party and custom creatives

In some scenarios, an agency, advertiser, or other third party might decide to track impressions with a tracking pixel. A tracking pixel is simply code inserted into a custom or third-party creative that makes a server call and returns a transparent 1x1 image (normally a GIF file).

Where to get a tracking pixel

Your third party advertiser or agency typically sends you the tracking pixel code. If your third party sends a URL, insert the URL into some generic tracking pixel code, according to the examples below.

Tracking pixel examples
Most tracking pixels have the same format with slight variations in the style variable. It is up to you and the advertiser to choose which format to use.
<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">

Add tracking pixels to creative code

If you want to add a tracking pixel to the creative code of a custom or third-party creative, simply insert the tracking pixel code at the top of creative code in the Code snippet box.

<img src="TRACKING-PIXEL-URL-GOES-HERE" width="0" height="0">
<!-- Example creative code -->
<a href="%c%u" target="_blank">
  <img width="728" height="90" border="0" src="%h/2315223/728x90Image.JPG">
A tracking pixel counts an impression every time you view the creative, including previews. 
Was this article helpful?
How can we improve it?