After you add the code to your website, you can use Google Tag Manager to set up and manage tags without needing to update your code any further. Tag Manager supports tags for Google products and third-party tags.
Before you begin
- You must create a Tag Manager account and container.
- You must install the Tag Manager container for your website.
Steps
- Go to https://tagmanager.google.com.
- Sign in to your Google Account. Learn how to create a Google Account.
- Open the Tag Manager container you want to edit. Find your way around Tag Manager.
- In the Workspace tab, click Tags (on the left).
- In the Tags section, click New (top right).
- In the panel, follow these steps:
- Replace Untitled Tag with the name of your tag (for example, 'Google tag').
- In the Tag Configuration section:
- In Choose tag type, select Google Tag.
- In Tag ID, enter your Tag ID. Learn how to find your Tag ID.
- In the Triggering section, select Initialization - All pages trigger. Learn more about each trigger type.
- Click Save.
Next steps
Make sure the tags you've added to your website behave as intended. Then, publish the changes you've made to your website.