Set up (web)

Find your tracking code, tracking ID, and property number in your account

The tracking code (1) is a snippet of JavaScript that collects and sends data to Google Analytics from a website. It’s automatically generated for every web property. You need to copy and paste it from your account on to your web pages for Google Analytics to work. Learn more about how to set up the web tracking code.

The tracking code snippet is only for collecting data from websites. You can use the Google Analytics SDKs to collect data from mobile apps and the Measurement Protocol to collect data from other digital devices, like ticket kiosks and game consoles. Both the SDKs and the Measurement Protocol need to be set up by a developer.

The tracking ID (2) is a string like UA-000000-01. It must be included in your tracking code to tell Google Analytics which account and property to send data to. It's automatically included in the JavaScript snippet for websites, but also needs to be included in other tracking technologies like the SDKs and the Measurement Protocol, for Google Analytics to work. The first set of numbers (000000, in the example above) refers to your account number, and the second set (-01) refers to the specific property number (3) associated with the account. The tracking ID is in large font on the Tracking Info page. You can also to see the entire string in the first few lines of the tracking code JavaScript snippet.

Location of the tracking code, tracking ID, and property number in your account.

Click to expand this image and see where the tracking code, tracking ID, and property number appear in your account.

To find the tracking code, tracking ID, or property number in your Google Analytics account:

  1. Sign in to your Google Analytics account, and go to the admin page.
  2. Select an account from the dropdown in the Account column.
  3. Select a property from the dropdown in the Property column.
  4. Click Tracking Info.
Image of where you find your tracking code in your Analytics account.

Click to expand this image and see where these options appear in your account.