Find your tracking code, tracking ID and property number

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

  1. Sign in to your Analytics account.
  2. Select the Admin tab.
  3. Select an account from the drop-down menu in the Account column.
  4. Select a property from the drop-down menu in the PROPERTY column.
  5. Under PROPERTY, click on Tracking Info > Tracking Code.Image of where you find your tracking code in your Analytics account. Click to expand this image and see where these options appear in the interface. 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.

Tracking code

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 into 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, such as ticket kiosks and game consoles. Both the SDKs and the Measurement Protocol need to be set up by a developer.

Tracking ID and property number

The tracking ID (2) is a string, such as '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 such as 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 see the entire string in the first few lines of the tracking code JavaScript snippet.