Google Analytics and DFP discrepancies
If you see significant discrepancies (>10%) between the reports in your DoubleClick for Publishers (DFP) account and those in Google Analytics, keep in mind these important points:
- Analytics tracks page views while DoubleClick for Publishers counts ad impressions. Be sure you compare reports that match the appropriate pages in Analytics with the proper slots in the DoubleClick for Publishers reports.
- Use the inventory reports in DoubleClick for Publishers and segment by ad slots for the most precise comparison.
- Enable the Unfilled impressions column to see if there are a significant amount of blank ads being served.
- Verify that DoubleClick for Publishers and Analytics code are both on the same page and in the proper locations within the HTML.
- Make sure any customizations are consistent across all products, including DFP, Google Analytics, and Google Tag Manager. For example, if you set a custom domain name for Google Analytics, the custom domain must be consistent with DFP and set before the first GPT request.
- Consider the passback scenario where DFP serves a third party creative. When the third party system doesn't have an ad to serve, a passback tag is served back to DFP. This results in a chain where:
- 1) User lands on the page and sends a request to DFP.
- 2) DFP returns a third party tag to the users page as the creative.
- 3) The third party doesn't have any inventory to serve and falls back to returning a DFP tag to the page as the creative.
- 4) The user's browser receives the DFP tag from the third party and makes another call to DFP.
- 5) DFP serves an ad and records an impression.
In this example, Google Analytics records 1 Page view metric and DFP records 2 impressions, one from Step(2), one from Step (5).
Even if your code is set up properly, statistics may still differ between Google Analytics and DoubleClick for Publishers.
Ad impressions in DFP versus pageviews in Google Analytics
There are a few reasons why an ad impression in DoubleClick for Publishers may not equal a pageview in Google Analytics:
If you've placed your Analytics code towards the end of your page, in very rare cases, a user enters and then exits a page before the page completely loads and before the tracking code is executed. In this case, DoubleClick for Publishers might count an ad impression, but Analytics doesn't count the pageview. This would result in a higher impression count in DoubleClick for Publishers than pageview count in Analytics.
- Iframes: Some publishers have placed DoubleClick for Publishers tags in an iframe to serve ads. Browsers that don't support the <iframe> tag don't report an impression. This can result in Analytics counting more pageviews than DoubleClick for Publishers counts impressions.
For browsers that do support iframe tags, putting the DoubleClick for Publishers tags within an iframe can result in an extra round trip between the browser and server. This additional latency can cause some users to leave the page before the browser has enough time to make the calls to both Analytics and DoubleClick for Publishers.
- Security (blocking) Software: Your DoubleClick for Publishers impressions might also be decreased by personal firewall software or ad blocking software which can cause Google ads to not display on your site, or may obscure portions of the ad. Ad blocking features of your users' internet security software must be disabled in order to view Google ads.
- Timezone: If your Analytics timezone doesn't match your DoubleClick for Publishers timezone, then the two sets of reports aggregate different time periods for the same displayed date. Learn how to set the time zone for your Google Analytics reports.
- Analytics profiles: Analytics allows you to create different profiles that can be used to filter data. If you view a profile that filters out some data, then the DoubleClick for Publishers data meant to correspond to the filtered-out data is not shown. Learn about how to create filters to control your report data.
Comparison between ad impressions to pageviews
Here are a couple of items to keep in mind when you compare ad impressions to pageviews:
- Frames: If the Analytics tracking code is present with a framed page as well as the framing page, Analytics registers two pageviews for that visit. This can result in inflated pageviews in Analytics. Learn more about framed sites.
- _trackPageview function: If you're using the _trackPageview function, your pageviews may be slightly inflated within Google Analytics. The function _trackPageview creates virtual pageviews for specific events such as PDF downloads that aren't tracked in your DoubleClick for Publishers account. Learn more about using virtual pageviews through Special Case Goals and Funnels.