Google Analytics

Fire events to your Google Analytics account from the chatbot flow.

Available on the STARTER plan and above.

Google Analytics is an analytics tracking tool built by Google which websites use to track the visitor behavior.

When you want you track certain events that occur on your website, you need to fire events on Google Analytics.

To fire an event to GA from Ally, all you need to do is define a "Google Analytics" block at the point in the chatbot flow when you want to fire.

Measurement ID

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.

Find your measurement ID here.

Event Name

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 include chat-started, menu-selected, lead-generated etc.

Event Parameter

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 here.

You can use variables in the 'Event name', and while defining value to event parameters.

Other Options

You can also use the JavaScript action block to fire events directly on client side.

Once fired, you can create a tag on Google Tag Manager that listens to this event as a trigger and triggers its tag, which would fire an event on your GA4 account.

Last updated