To use a custom trigger, configure triggers and tags in your Tag Manager. Events are fired by our
script injected on your website with all the logic necessary to handle banners and widgets, so
there is no need to implement our solution in code.
By default, there are 5 basic cookie types:
Those will be also serve as triggers and event names.
Setting up triggers
1. Navigate to the main dashboard, click "Triggers" section, and select "New"
2. Select "Custom Event" trigger from the list
3. Fill in the required inputs. As the trigger's event name, use one of the existing cookie
categories listed above. The trigger itself doesn't need to use the category name.
4. Repeat the steps above for all individual cookie categories to cover all the possible
choices of the client.
Setting up tags
Now, with all triggers set-up, we can continue and assign content/functionalities we want to
serve on our website.
In this example, we'll use Google Analytics.
1. Start by choosing the type of tags you want to use. In this example, it’s Universal Google Analytics,
2. Configure the tag according to you needs, and select a relevant trigger. In this example,
as we're configuring Google Analytics, we should use cookie_cat_statistic event, which
was assigned to a trigger called "Statistic Cookie".
Remember that a trigger's event name
is a key value, while the name of the trigger can be set according to you preferences and will not affect the trigger’s functionality.
- A tag can be called using a number of triggers. If more than one trigger is added, Google
Tag Manager will require at least one of them to fire to execute the tag.
- Additionally, you can set how many times a tag can be triggered per a client’s visit.
- In case of problems, visit Tag Manager Support page .
- Remember to publish your changes or the tag will not work as expected.