June 22, 2023 Great news! You can now establish links between Google Analytics 4 properties and AdSense accounts! By connecting your AdSense account to a Google Analytics 4 property, you unlock valuable insights for optimizing your ad revenue. This integration enables easy access to your AdSense data within GA4 reports and explorations, allowing for a comprehensive analysis of website metrics like traffic sources and user behavior. Through the power of data analysis, you can identify patterns and make informed decisions to maximize your ad revenue potential.
When you link AdSense and GA4, Analytics starts collecting the following events automatically:
One thing to note is that Analytics collects each of these events for each ad on a page, which can cause an increase in the number of billable events for 360 properties.
However we think it’s worth it because it eliminates the discrepancies in reporting between Analytics and AdSense that were previously seen with the integration between these two tools.
Before setting up Google AdSense integration for GA4, make sure the following prerequisites are met:
To create or delete AdSense links in GA4, you must be an Admin in AdSense, and have the Editor role in Analytics.
Your GA4 web property must be configured to collect data. The Google tag (gtag.js) is a single tag you can add to your website to use a variety of Google products and services. Instead of managing multiple tags for different Google product accounts, you can use the Google tag across your entire website and connect the tag to multiple destinations.
To link an Analytics property to your AdSense account:
The Google AdSense integration with GA4 requires shared IDs, automatic event collection, and data joining for optimal performance.
For AdSense integration to work effectively, GA4 and AdSense tags communicate with each other using shared IDs to match each ad impression with its corresponding GA4 event. GA4 and AdSense use tags within each web page to generate a unique ID for each event or ad impression. In web properties this is called the query_id.
Inter-tag communication ensures that logged IDs are the same between GA4 and AdSense for a single event and its corresponding ad impression. Inter-tag communication takes place synchronously as events are sent and ads are served. IDs that are logged when AdSense and GA4 are not linked or when either system is unavailable will not be shared in this integration.
GA4 automatically collects a specific set of events via the Google tag. AdSense integration uses the ad_impression and ad_click events to populate data in GA4. The ad_query event is used for data joining. Learn more about Automatically collected events in GA4.
GA4 joins its data with AdSense log files using the shared IDs to match AdSense data with Analytics data. This integration uses the information and configuration settings available when each individual event occurs. Making changes to tagging configurations or to page dimensions in GA4 won’t affect the data displayed in GA4 reporting for past data.
Once you’ve set up the AdSense reporting integration, you’ll be able to see your AdSense data in GA4. Your AdSense revenue data will be available in the Monetization > Publisher ads reports and the Explorations main menu in your Google Analytics 4 property.
(Explorations is a set of powerful audience discovery and comparison tools. With its user-friendly drag and drop feature, you can effortlessly add dimensions and metrics onto the canvas. Switch between exploration techniques and easily export your findings to Google Analytics segments and Remarketing Audiences.)
After you link your AdSense account with your Google Analytics 4 property, Google AdSense traffic will be represented in the following dimensions and metrics in your Analytics reports:
If you notice big differences in the data shown in your AdSense account reports and the Analytics section of AdSense, it's important to double-check that the Google tag is properly set up on your website(s). This will ensure accurate tracking and reporting of your ad performance.
If the Google tag is set up correctly, and you still see data discrepancies in your AdSense and Analytics reports, they might be caused by one or more of the following:
By integrating GA4 with AdSense, you can gain valuable data insights that allow you to optimize your website's performance and increase ad revenue.
However, it's important to remember that this integration can cause an increase in the number of billable events for 360 properties which can result in overage payments.
To get the most out of the GA4/Adsense integration, you should be aware of its benefits, drawbacks, and potential for data discrepancies. But with a clear understanding, you can make informed decisions that will greatly benefit your business.
If you need assistance with this integration or with GA4 or Adsense, we’re always here to help. Get in touch.