Website Widgets: Google Tag Manager
EliseAI's Chat/Contact Widgets offer a simple and efficient way for users to book tours and get in touch with communities. We have integrated Google Tag Manager (GTM) metrics to help you track user interactions and gain insights into how users engage with the widget on your community websites. The following guide will help you understand the custom events and associated metrics.
Custom Events
We've created 6 custom events to track various user actions:
-
emailUsSubmitted: This event is triggered when a user submits the "Email Us" form.
-
textUsSubmitted: This event is triggered when a user submits the "Text Us" form.
-
scheduleTourSubmitted: This event is triggered when a user submits the "Schedule a Tour" form.
-
firstChatMessageSent: this is the first message sent in webchat
-
chatMessageSent: this triggers for any message sent in webchat
-
scheduledTourEvent: this triggers when a tour has been confirmed in webchat
Event Data
Each custom event contains specific data related to the user's interaction:
-
originatingSource: The marketing source from which the lead came, (e.g. "Apartments.com")
-
message (emailUsSubmitted and scheduleToursSubmitted) : User's message
-
tourType (scheduleTourSubmitted only): Type of tour, e.g., "live-virtual-tour"
-
tourTime (scheduleTourSubmitted only): Scheduled tour time
Setting Up Custom Triggers in Google Tag Manager
We're pushing the events to the data layer, and you'll need to set up the custom triggers, variables, and tags in Google Tag Manager to track these events in Google Analytics. Below is a guide on how to create a custom trigger for these events:
-
Enable the "Event" variable: Navigate to Variables > Configure
-
Create new triggers:
-
Name one "EliseAI - Conversion"
-
Name a second "EliseAI - Chat Conversion"
-
-
Select the "Custom Event" Trigger Type
-
Set the Event Names
-
For the first trigger, use "scheduleTourSubmitted|emailUsSubmitted|textUsSubmitted" and select "use RegEx matching"
-
Select "Some Custom Events" and set the following conditions: Event -> matches RegEx -> scheduleTourSubmitted|emailUsSubmitted|textUsSubmitted
-
-
For the second trigger, use "scheduledTourEvent" as the event name
-
-
Save and configure your Google Analytics tag as you would normally, using the both Triggers you just created. The completed form should look similar to below:
-
Make sure to set the "Tag firing options" to "Once per page"
-
-
Preview the workspace to ensure that your tag fires when submitting an email request form, text request form,
If there are additional metrics you would like to see exposed, or if you have any questions or need further assistance, please don't hesitate to reach out to our support team at support@meetelise.com.