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.
- On the Tag Manager container you want to edit.
- 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 Analytics 4').
- In Tag Configuration, choose the tag you want to create. Learn more about tags.
- In Triggering, choose when a specific tag should fire. 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.