Google Tag Manager
Using Google Tag Manager to manage and deploy Algomo widgets.
Prerequisites
In order to use Google Tag Manager tracking, you need to fist have Google Tag Manager installed on your website. If you don't have Google Tag Manager installed, you can refer to this guide to get started.
Make sure to also install the Algomo widget on your website. Refer to this guide to learn how to do it.
Installation
To enable Google Tag Manager tracking:
- Navigate to the Widgets page.
- Pick a widget you want to add Google Tag Manager tracking to.
- Click on the "Web Analytics" tab.
- Enable the Google Tag Manager tracking option.
- Save the widget.
Usage
Triggers
You can use our events as triggers in Google Tag Manager:
- Create a new trigger.
- Select "Custom Event" as the trigger type.
- Enter the event name, e.g. "Message sent (Algomo Widget)".
- Save the trigger.
See the Variables section below to learn how to use event parameters in your triggers.
Variables
You can use event parameters as variables in Google Tag Manager:
- Create a new variable.
- Select "Data Layer Variable" as the variable type.
- Enter the parameter name under "Data Layer Variable Name", e.g. "widgetId".
- Save the variable.
You can now use the variable in your tags (e.g. to send the widget ID to Google Analytics) and triggers (e.g. to trigger a tag when a specific widget is used).
Testing
In order to test Google Tag Manager tracking, you first need to install the widget on your website. Refer to this guide to learn how to do it.
- Enable the Google Tag Manager tracking option in the widget settings.
- Enter Preview mode in Google Tag Manager and put a link to a page with your widget installed.
- Once the page and widget have loaded, trigger an event from the widget, e.g. by sending a message. Refer to the events table in the Overview page to see how to trigger each event.
- In Google Tag Manager, you should see a new event ending with "(Algomo Widget)" in the "Summary" tab.
Troubleshooting
I don't see any events in Google Tag Manager
Make sure you've enabled the Google Tag Manager tracking option in the widget settings and the Algomo widget installed on your website.
Last updated on Feb 7, 2024
Previous
Web Analytics
Next
Google Analytics
Did this answer your question?