Verification: Google Analytics tracking code

If you use Google Analytics to track your site's traffic, you can verify your site using the Google Analytics tracking code associated with the site. To do this, you must have "edit" permission for the web property whose tracking code is used by that page. Also, your tracking code must use the new asynchronous snippet.

To verify your site using a Google Analytics tracking code:

  1. On the Search Console Home page, click the Manage Site button next to the site you want, and then click Verify this site.
  2. In the Choose verification method list, select Google Analytics tracking code, and follow the steps on the page to verify your site.
    When copying Google Analytics code:
    • Put the tracking code in the <head> section, not the <body> section, of your page. If you do not, verification will fail.
    • Use the code exactly as provided; do no modify it. If you modify it, verification will fail.
  3. Click Verify. Removing the code from your page can cause your site to become unverified, and you will need to go through the verification process again.

The Google Analytics tracking code is used only to verify site ownership. No Google Analytics data will be accessed.

Note: when using the tracking code in this way, other administrators of your Google Analytics account will also have access your site's data in Search Console.

Was this article helpful?