Behavior

About AdSense in Analytics

AdSense lets you earn money by using a Google display tool on your website to host third-party ads that are relevant to your audience. Learn more about AdSense.

Manage your AdSense and Google Analytics integration

If you use AdSense, you can link an AdSense account to Google Analytics so you can use Analytics to give context to your AdSense data and get a better understanding of your performance. You must use the same email address in Analytics and AdSense to link your accounts, and have edit or admin permission in both accounts.

When you your AdSense and Google Analytics accounts, you can designate primary and secondary properties. For each property, you can also decided which views to use for reporting.

If you want to maintain your Analytics account without AdSense data, you can also disable AdSense reporting in Analytics.

Manage all of these settings in the AdSense Linking section found under the Account column from your Google Analytics admin page.

Data discrepancies between AdSense and Analytics

If you see significant data discrepancies between the reports in your AdSense account and those in the AdSense section of Google Analytics, keep in mind these points:

  • Google Analytics only records data for AdSense content ad units, and doesn't include link units, search boxes, mobile ads, or any other AdSense products.
  • You must include Analytics tracking code on every webpage running AdSense for content ad units to match in both Analytics and AdSense reports.
  • If you are tracking AdSense in Analytics on multiple domains, you must include a third code snippet, the AdSense Analytics Code on all webpages on all domains other than your primary domain. Learn more about how to set up the code to track your AdSense sites in Analytics.

If your tracking code and account are set up correctly, and you see data discrepancies in your AdSense and Analytics reports, it might be caused by one of the following:

  • Iframes: AdSense uses an iframe to serve ads. Browsers that don't support the <iframe> tag don't report an impression in Analytics. This can result in Analytics counting more pageviews than AdSense counts impressions.
  • Security or other blocking software: Software that can block content, like firewalls, ad blockers, or other 3rd party image blockers, can also block AsSense impressions. Users with these kinds of installations are still counted in Analytics, but AdSense impressions and data won't be counted in your Analytics reports.
  • New AdSense/Analytics integration: It can take up to 24 hours after you link your AdSense and Analytics accounts before data is collected. If you've recently configured your AdSense or Analytics code, or recently linked your accounts, wait at least 24 hours before data appears in your reports. AdSense data that was collected before you linked your accounts cannot appear in Analytics.
  • Timezone settings: If the timezones in your Analytics and AdSense accounts don't match, each product aggregates data into different time periods for the same displayed date in the reports. Edit a property to change the timezone in Analytics.
  • Analytics view filters: Analytics lets you create different reporting views. You can add filters to views to exclude specific data, so you can customize the data you see in your reports. AdSense data associated with sessions that are filtered out of an Analytics view are also excluded from all the Analytics reports in that view. Learn more about filters in Analytics.
  • Missing Analytics data: If any Analytics data isn't collected, like if the tracking code didn't execute, the AdSense data associated with that missing Analytics data is also not reported in Analytics.