How can we help?

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:
  1. Navigate to the Widgets page.
  1. Pick a widget you want to add Google Tag Manager tracking to.
  1. Click on the "Web Analytics" tab.
  1. Enable the Google Tag Manager tracking option.
  1. Save the widget.

Usage

Triggers

You can use our events as triggers in Google Tag Manager:
  1. Create a new trigger.
  1. Select "Custom Event" as the trigger type.
  1. Enter the event name, e.g. "Message sent (Algomo Widget)".
  1. 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:
  1. Create a new variable.
  1. Select "Data Layer Variable" as the variable type.
  1. Enter the parameter name under "Data Layer Variable Name", e.g. "widgetId".
  1. 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.
  1. Enable the Google Tag Manager tracking option in the widget settings.
  1. Enter Preview mode in Google Tag Manager and put a link to a page with your widget installed.
  1. 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.
  1. 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

 
Did this answer your question?
Help Center