Create a tag
A tag is a piece of code which you can place in your website’s code through Tag Manager. With tags you don’t need to engage web developers in changes on your website and you can add a code independently.
Tags are mostly used to enrich analytics, run marketing campaigns, and integrate products into your website or app. In this article, we’ll explain how to create a tag.
To create a tag, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Tags.
- Click + Create new tag.
- Name the tag and choose a tag type. You can choose a tag type from two categories:
- Asynchronous tags: load at the same time as the page’s content. Tags may fire after loading the page’s content. It’s a good practice to use asynchronous tags for tracking tags.
- Synchronous tags: fire and load first, even before the page loads. The content of a page won’t appear until the tag fires. It’s a good practice to use synchronous tags for A/B tests.
Tip: For more about tag types, see a full list of tags in Tag Manager section.
Does not require consentwill need a visitor’s consent to fire.
Do not fire in debug mode.
Tip: You can add a trigger to a tag anytime, but it’s a good practice to do it while creating a tag.
Tip: For more about trigger types, see a full list of triggers in Tag Manager section.
Page URL contains blog.
Apple product usersand we want to run the tag only for visitors from this audience.
Tip: For more about audiences, read Create an audience.
Fire tag multiple times.
Tip: Tags are fired in the order in which they were added, but you can set your own order. For more, read How to fire tags in a specific order?.