To find the tracking ID, property number, and tracking code snippet for an Analytics property:
- Sign in to your Analytics account.
- Click Admin.
- Select an account from the menu in the ACCOUNT column.
- Select a property from the menu in the PROPERTY column.
- Under PROPERTY, click Tracking Info > Tracking Code.
Tracking ID and property number
The tracking ID (1) is a string like UA-000000-2. It must be included in your tracking code to tell 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 Analytics to work. The first set of numbers (-000000, in the example above) refers to your account number, and the second set of numbers (-2) refers to the specific property number (2) associated with the account. The tracking ID is also included in the tracking code snippet.
Tracking code
The tracking code (3) is a snippet of JavaScript that collects and sends data to Analytics from a website. It’s automatically generated from every web property. You need to copy and paste the tracking code for your property into your web pages for Analytics to work. Learn more about how to set up the tracking code for a website.
SDKs
The tracking code snippet is only for collecting data from websites. Use the Analytics SDKs (4) to collect data from mobile apps, and use the Measurement Protocol to collect data from other digital devices like ticket kiosks and game consoles. The SDKs and the Measurement Protocol need to be set up by a developer. Links to information about each of the SDKs are located in the section of the tracking code.
0 comments:
Post a Comment