Google Analytics
Fire events to your Google Analytics account from the chatbot flow.
Last updated
Fire events to your Google Analytics account from the chatbot flow.
Last updated
Available on the STARTER plan and above
Google Analytics(GA) is an analytics tracking tool built by Google used by businesses to track their website traffic behaviour.
With our 'Google analytics' integration, you can fire events to your GA account using 2 methods:
With this approach, we fire a GA event on the client-side using GA's javascript methods on the browser.
All you need to do is add a "Google Analytics" block at the point in the chatbot flow when you want to fire an event, and configure it.
To configure a GA action block, you need to add the following details:
The measurement ID acts as a critical link, connecting your website to the corresponding data stream in Google Analytics 4. It ensures that the data from your site is sent to the right location.
The name of the event that you want to fire. Event names are to be written in lowercase without spaces and help you easily understand what that event is.
Some examples are -- chat-started, menu-selected, lead-generated etc.
An event parameter is an additional piece of data about a user interaction on a website and/or app, offering valuable context and details about the interaction.
For example, in the below screenshot we have a main menu with multiple options. We can create an event "menu-selected" and pass an additional event parameter which tracks the menu selected under "option".
Learn more about event parameters
You can use variables in the Event name, and while defining value to event parameters
Specifically for non-web channels like Instagram, WhatsApp, Facebook Messenger and SMS, the above method of GA tracking does not work, as work with the principle of client-side tracking.
With server-side tracking, we fire APIs of Google analytics to record an event.
To configure this, you would need:
Measurement ID - GA account in which you want to record the event.
API secret - Goto Settings -> Data stream -> Measurement Protocol API secrets -> "Create" to create your API secret.