To add a tag, follow these steps:
- Go to Menu > Tag Manager.
- Click a Create new tag button
- Name the tag and choose a tag type template.
You can choose from two types of tags:.
- 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.
This setup allows you to choose when to fire a tag. Any tag type other than Does not require consent will require visitor consent to fire.
Pick this option if you want to respect privacy of your visitors, who decided to:
- Set up the Do Not Track option in their web browser.
- Opted out from being tracked.
Once the tag is published it will fire for visitors, but it will not fire in the debug mode. In the debug mode you will see a tag marked as disabled. Keep it in mind while testing all of your tags.
You can add a trigger to a tag anytime, but it’s a good practice to do it while creating a tag.
Setting tag priority
By default, tags fire in an order defined by the edit date. And they always fire fired asynchronously. But if you want to fire tags in a specific order, you can arrange it by setting a priority for them.
To set priority for tags, follow these steps:
- Sort the list of tags by priority
- Drag and drop tags to set expected order.
- Publish your changes to make it live.
Scheduling flight dates
You can schedule when your tags will be live. You can set up two options that can work side by side:
- Date range — you can select a period when the tag will be live. For example, fire a tag with a pop-up only between 1st and 3rd May. The tag won’t be fired before 1st and after 3rd of May, even if triggers conditions will be met.
- Time of day — you can pick hours during a day when the tag will be live. For example, display a tag with a pop-up only between 8 a.m. till 8 p.m. The tag won’t be fired before 8 a.m. and after 8 p.m., even if triggers conditions will be met.
Dates and hours base on your website’s server time. Yet, you can choose a timezone for flight dates.
Creating a trigger
When creating or editing a tag, you can also add one or more triggers to it, and it’s a good practice to do it at this step.
To add a trigger to a tag, follow these steps:
- Click a New trigger button.
- Name the trigger.
- Chose a trigger type and conditions. For more informations go to the Trigger section. Just keep in mind, synchronous tags are compatible only with the page view trigger. You are not able to fire synchronous tags with the following triggers: click, sending form, event, page scroll, leave content, and time on website.
- Click the Save button for a trigger.
- Add more triggers if you want to, and when done click Save button for a tag.
Choosing an existing trigger
If you want to pick a trigger you’ve already created, select an existing trigger when adding a trigger to a tag.
To choose an existing trigger for a tag, follow these steps:
- Click an Existing trigger button.
- Choose one or more triggers from the list and click the OK button.
- Click a Save button for a trigger.