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
*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
Select “Custom event”
Set the event name accordingly
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.
3. After creating the triggers, you can move to creating the tags
Universal Analytics:
Choose “Track Type -> Event”
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.
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:
- Click New Tag
- Label your new GA4 Configuration Tag
- Choose the Google Analytics: GA4 Configuration
- Input Your Measurement ID from GA4*
- Click the box “Send a page view event when this configuration loads”
- 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