[UA] Set up the code to track your Ad Exchange sites in Analytics [Legacy]

You are viewing a legacy article about Universal Analytics. Learn more about Google Analytics 4 replacing Universal Analytics.

To see Ad Exchange 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 right after the opening <head> tag
  2. The Ad Exchange code, between the <body> and </body> tags

Was this helpful?

How can we improve it?
true
Choose your own learning path

Check out google.com/analytics/learn, a new resource to help you get the most out of Google Analytics 4. The new website includes videos, articles, and guided flows, and provides links to the Google Analytics Discord, Blog, YouTube channel, and GitHub repository.

Start learning today!

Search
Clear search
Close search
Main menu
15866051396925331386
true
Search Help Center
true
true
true
true
true
69256
true
false
false
false