Google Tag Manager Integration

Analyze Chatsimple activity in your Google Analytics dashboard (and more).

Pre-requisites: - Awareness about 'Google Tag Manager'. - Otherwise, watch this & this video to get an overview.

Step 1: Add GTM ID to your Chatsimple embed code

You can find your GTM ID in your Google Tag Manager dashboard. It starts with 'GTM-...' as shown in the image below.

Then add it to your embed code as shown below

// For the AI Nav
<co-pilot 
platform-id="06casd1c-18c3-44fc-8531-c869753d4346"
user-id="5955912312324486923" 
chatbot-id="13fdsd38b-a832-46e0-a946-605858588f90" 
gtm-id="GTM-MR2111V5" // <-- this was added
></co-pilot> 
<script src="https://cdn.chatsimple.ai/ai-loader.js" defer></script>
// For the Widget
<chat-bot 
platform-id="06casd1c-18c3-44fc-8531-c869753d4346"
user-id="5955912312324486923" 
chatbot-id="13fdsd38b-a832-46e0-a946-605858588f90" 
gtm-id="GTM-MR2111V5" // <-- this was added
> 
<a href="https://www.chatsimple.ai/?utm_source=widget&utm_medium=referral">chatsimple</a></chat-bot><script src="https://cdn.chatsimple.ai/chat-bot-loader.js" defer></script>

To jog your memory, this is what we mean by the Chatsimple embed code. 😉

Step 2: Set up triggers in your Tag Manager Account

You can choose whatever trigger name makes sense, but the 'Event name' must be exactly as shown in the table below.

Triggers to set up if using the AI Nav

Event NameWhat does it track?

asked_chatsimple_nav

Sent at least one message using the Chatsimple AI Nav.

chatsimple_main_cta_clicked_nav

Clicked the main call to action (CTA) in the AI Nav.

chatsimple_leadform_submitted_nav

Submitted a lead form in the AI Nav.

Triggers to set up if using the Widget

Event NameWhat does it track?

asked_chatsimple_widget

Sent at least one message using the Chatsimple widget.

chatsimple_main_cta_clicked_widget

Clicked one of the main call to actions (CTAs) in the widget

chatsimple_leadform_submitted_widget

Submitted a lead form in the widget

Step 3: Set up Tags for each of the relevant triggers

See below the required configuration. Remember that here, you also have to input your measurement ID from your Google Analytics Account.

Step 4: Preview then Submit

Click 'Preview' and in debug view ensure all the relevant tags are being fired. Then click 'submit' to save changes.

And you're done! 🔥

Last updated