Each tag needs a trigger that will tell the tag when and where to fire. For example, you may want to run a tag with a pop-up after a visitor left a contact page. In this article, we’ll explain how to create a trigger and set up its conditions.
There are two ways to create a trigger — while setting up a tag or in the trigger section.
To create a trigger, follow these steps:
Trigger section
- Go to Menu > Tag Manager.
- Navigate to Triggers.
- Click Add a trigger.
While creating a tag
- Go to Menu > Tag Manager.
- Navigate to Tags.
- Click on the tag you want to work with.
- In Tag triggers, click Add a trigger.
~
Then the process is the same for both cases - Name the trigger.
- In Event type, choose a type. For example, Page view.
Tip: Each trigger type is described in this section.
- Click Next.
- Set up a trigger. For example, in a page view trigger decide when to load the tag.
- In Event conditions, define conditions for the trigger. For example,
Page URL contains blog
.
Tip: Each trigger has a different set of conditions. You can learn more about each condition in this article.
Available below 16.0.0
In Audiences, pick an audience for which you want to display the trigger. For example, we’ve got an audienceApple product users
and we want to run our tag only for visitors from this audience.
Tip: For more about audiences, read this article.
- In Multiplicity, set how often the tag should be fired. For example, Many times during a session.
- When you’re done, click OK.
- If you’re setting up a trigger while creating a tag, click Save for the tag.
- If you’re setting up a trigger in a trigger section, after creating a trigger you can add it to the tag.