How To Set Up Code To Track Your AdSense Sites In Google Analytics.

How To Set Up Code To Track Your AdSense Sites In Google Analytics.

Before you set up the code to track your AdSense sites in Google Analytics, make sure you first and foremost link your Google Analytics and AdSense.

How to find your tracking ID and global site tag.

  1. Sign in to your Google Analytics account.
  2. Click on the Admin tab.
  3. Select the account you want to get the ID from the menu in the account column.
  4. You also have to select the property you need the ID for in the property column.
  5. Under the property column, click on Tracking info.
  6. Now you have to click on the tracking code, and it will be displayed farther down the page.
  7. Copy the entire contents of the text box.
  8. Paste it after the opening <head> tag on each page you want to measure on your website.

How to verify if your global site tag is working

Simply visit your website and check the Real Time Reports in Analytics and confirm if you registered properly.

You can also use Google Tag Assistant to find out if your tag was implemented correctly.

In order to be able to see AdSense reports on Google Analytics for a homepage, that webpage must contain:

  1. The Google AdSense code you are using to show Ads.
  2. The analytics tracking code.

N/B: The order of the code snippets is very important, and for that reason, it is recommended that you place then snippets in your webpages HTML in the following order;

  1. The Analytics tracking code should be placed before the closing <head> tag.
  2. The AdSense Ad code should be placed between the <body> and </body> tags.


You can follow link here to read the Google AdSense program policies.

If you found this article helpful and interesting, please subscribe to this blog below to get updates on new articles we publish every day. You are free to unsubscribe anytime.