fbpx
Reading:
Setting up an integration to Google Tag Manager (GTM)

Leadoo Help Center

Search

Setting up an integration to Google Tag Manager (GTM)

Avatar photo
June 28, 2022

Leadoo is fully integrated to Google Tag Manager, meaning that custom events can be triggered for every interaction any visitor does with Leadoo chatbots. Here’s how to implement Google Tag Manager to work with Leadoo.

1. Add your Google Tag Manager container ID to your Leadoo admin panel

Go to Conversion Kit -> General bot settings -> Advanced

Nayttokuva 2021 11 18 kello 14.34.18 google tag manager integration leadoo Setting up an integration to Google Tag Manager (GTM)*In most cases you can leave GTM data layer property field empty.

After this has been set your bots will start sending events.

2. Open Google Tag Manager and create a new trigger

gtm2 google tag manager integration leadoo Setting up an integration to Google Tag Manager (GTM)

Select “Custom event”gtm3 google tag manager integration leadoo Setting up an integration to Google Tag Manager (GTM)
Set the event name accordingly

gtm4 google tag manager integration leadoo Setting up an integration to Google Tag Manager (GTM)

GTM TRIGGER NAMES

Dynamic events that are always set are:

TRIGGER → This event is sent once a bot is triggered

DISCUSSION → This event is sent once a bot discussion is started

LEAD → This event is sent once a lead is converted

LC_TRIGGER → Livechat started

Multiselect options (used fe. for creating audiences for retargeting ads):

GTM-1234 → This event is sent once a button is clicked within the bot discussion

As default the event names are set such as: “GTM-2663823”, but they can be edited on the Leadoo backend.

Nayttokuva 2021 11 9 kello 16.27.19 google tag manager integration leadoo Setting up an integration to Google Tag Manager (GTM)

3. After creating the triggers, you can move to creating the tags

Universal Analytics:

gtm6 google tag manager integration leadoo Setting up an integration to Google Tag Manager (GTM)

Choose “Track Type -> Event”
gtm7 google tag manager integration leadoo Setting up an integration to Google Tag Manager (GTM)
Set the desired values for category, action and label.

Most commonly we suggest to add the following values for basic users when measuring just leads / conversions:
Category: Leadoo
Action: Lead / Discussion / Trigger
Label: Page url variable

Connect this created tag to the trigger that is associated with action set in this section.

gtm8 google tag manager integration leadoo Setting up an integration to Google Tag Manager (GTM)

Now you will be able to track your Leadoo conversion in Google Analytics.

Google Analytics 4:

First start by configuring Your GA4 Tag In Google Tag Manager

Before creating our custom event tag, we need to first configure our GA4 tag in GTM to connect the two applications. In your GTM container, create a new tag using the following steps:

  1. Click New Tag
  2. Label your new GA4 Configuration Tag
  3. Choose the Google Analytics: GA4 Configuration
  4. Input Your Measurement ID from GA4*
  5. Click the box “Send a page view event when this configuration loads”
  6. Click save

* You can find Measurement ID from GA4 under Admin -> Data Stream -> click account -> copy Measurement ID

After configuring GA4, you can move to creating the tags

Example:

Choose “Tag Type” ->GA4 Event

”Event Name” -> Leadoo_Lead *

Connect this created tag to the trigger that is associated with action set in this section.

*If you want more specific information to be sent to GA4 (Bot type, Bot Category, Label etc.) you should add these to ”Event Parameter”

Fe. You want to see Labels on GA4:
Add row -> Parameter Name: Lead_type -> Value: {{Label}}

(Remember to create ie. {{Label}} variable on GTM using Data layer variable)

Now you will be able to track your Leadoo conversion in Google Analytics.

Advanced users

More advanced Google Tag Manager users can also leverage the information sent over on the data layer. The following details can be used to create custom variables

category <- Bot type (embed, chat, cta, modal)
bot_category <- For each bot you can set a bot category on the Leadoo backend, this allows you to create for example separate analytics for sales and recruitment bots
label <- For each multi select answer you can create custom labels. These can be for example interest type of the customer
text <- Info of what text was written on the bot.
bot_name <- Name of the bot
bot_nickname <- Name given on bot settings

gtm9 google tag manager integration leadoo Setting up an integration to Google Tag Manager (GTM)

Did you find this article helpful?
20 out of 49 found this helpful

Related Stories

You can now try Leadoo for FREE