Google Analytics Tracking tag

Tag Manager

The Google Analytics Tracking tag lets you instal a tracking code for Google Analytics. With Tag Manager, you can set it up in a hassle-free way.

Before you set up the tag, you need to find the the tracking ID in Google Analytics. To find it, follow these steps:

  1. Go to Google Analytics.
  2. Click Admin.
  3. Select an account from the menu in the account column.
  4. Select a property from the menu in the property column.
  5. Under property, click Tracking info > Tracking code
  6. Copy the tracking ID — it’s displayed at the top of the page.

To set up a Google Analytics Tracking tag, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Tags.
  3. Click Add a tag.
  4. Name the tag and select the following type: Google Analytics Tracking.
  5. Paste the tracking ID.
    Google Analytics Tracking tag in Piwik PRO
  6. Optionally, you can toggle Google Optimize setup and set it up.
    Google Analytics Tracking tag in Piwik PRO
  7. In Advanced tag settings, choose Consent type. Set it up if you use a consent form on your site. This tag will fire only for visitors who accept the selected consent type.
  8. Respect opt-out and DNT is turned on by default. Leave it as is, if you want to respect visitors who set Do-Not-Track in their browsers, or visitors who opt out of tracking using our opt-out form.
  9. In Flight dates, set the date and time when the tag is fired.
  10. In Tag triggers, click Add a trigger or Choose existing trigger to set up a trigger for your tag.
  11. Adjust trigger conditions.
  12. When you’re done, click OK for the trigger.
  13. Click Save for the tag.
  14. Test your tag in debug mode.
  15. When you’re happy how the tag works, click Publish.

Was this article helpful?

Technical support

If you still have some questions, visit our community.
There’s always someone ready to help!

Back to help center