Set up the code to track your AdSense sites in Analytics

To see AdSense reporting in Analytics for a webpage, that webpage must contain:

Please note that the order of the code snippets is very important. We recommend that you place the snippets in your webpage's HTML in the following order:

  1. The Analytics tracking code, placed just before the closing </head> tag
  2. The AdSense ad code, between the <body> and </body> tags

How helpful is this article:

Feedback recorded. Thanks!
  • Not at all helpful
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful