Setting up the Tag Manager
Altcraft Tag Manager is a tool that allows you to manage HTML tags and JavaScript code without needing to involve developers. With it, you can create, add, and update code snippets on your website. The Tag Manager enables quick and easy setup of pixels and pop-ups to track user actions and send data to the platform.
Key terms
When working with the Tag Manager, you will encounter the following terms:
Container — a framework that stores tags, triggers, and variables. It provides the code that needs to be placed on the website to activate the tags.
Tag — a piece of code that performs a specific function (e.g., displaying a pop-up to site visitors).
Trigger — a condition for firing a tag. Triggers monitor certain events on the website (such as clicks or page loads) and activate tags in response to them.
Variable — a parameter that receives specific values. Variables can be used in both triggers and tags. In triggers, they determine when a tag should be fired, while in tags, they are used to retrieve dynamic values.
Step 1. Editing the container and installing it on the website
To start working with the Tag Manager, go to the Web Layer section ➝ Tag Manager. By default, a container is already created in your account. You can work with it or add a new one. It is recommended to set up a separate container for each website or mobile app.
To edit an existing container, click on its name. Each container must be linked to at least one database. To link it, click the appropriate button in the quick actions menu.
When you click on the container ID (ATM-xxxxxxx), a window with the code will open. Copy the provided code and send it to your developers. They need to place it on every page of the site where you plan to use tracking tags. The container code should be added to the
section as close to the opening tag as possible.
Any changes to the container settings (editing the name or access groups, setting up tags and triggers) are automatically saved in the platform, but they will not be applied to the website until you publish the container.
Step 2. Adding tags and setting up triggers
To create a tag and set the conditions for its activation, follow these steps:
1. In the "Tags" tab, click + Create. Enter the tag name.
2. Choose the tag type:
Popup — used to display a popup window to website visitors. It must be created in advance and then selected in the corresponding field. You can learn more about what a popup is from our article, and here you will find instructions for creating one.
Custom HTML — used to create a custom tag.
3. Set the tag activation settings and apply restrictions. These parameters are optional, but we recommend specifying them. With these settings, you can schedule when the popup will appear, for example, during a holiday or on a specific day of the week. Restrictions can help ensure that the popup doesn’t annoy website visitors with too frequent appearances.
4. Click Choose Triggers. A new window with all available triggers will open. To set up a new trigger, click + Create. Enter the trigger name and choose its type.
By default, triggers are activated in response to all events of a specific type. To set additional conditions for trigger activation, you can set up a filter. To do this, in the Trigger Activation Conditions block, select Some events. After configuring the filter, save the trigger using the button at the bottom of the page.
5. In the Choose Trigger window, select one or more triggers and click the Select button at the bottom of the page. If multiple triggers are selected, the tag will be activated when any of them are triggered.
6. In the Create Tag window, check the settings and click Save.
The created tag will appear in the "Tags" tab. If you need to change its settings, click on its name. To temporarily pause tags on the website, select the tags and click the Pause button in the quick actions menu, then publish the new version of the container. You can also delete unnecessary tags from the container.
Step 3. Publishing a container version
A version is a saved copy of the container at a specific point in time. If you’ve made changes to the container (added a tag, modified a trigger), you can save these changes as a version. To do this during container setup, click the Publish button. Two publishing options are available:
- Publish and create a new version — a new version of the container is created, and all changes are applied to the website.
- New version — a new version is created, saving all changes, but the container is not published, so changes are not applied to the website.
It is recommended to specify a name and description for the version to log what changes were made. Then confirm the save by clicking the Publish button at the bottom of the page:
You can switch to a different version or publish it instead of the current one. To do this, click Select as latest version in the quick actions menu.
The tag manager and code container have been successfully configured. Now, you can use them to add tracking pixels or pop-up windows to your website.