Google Analytics is an incredibly popular tool to gain insights into who is coming to your site, how they're behaving, and if they're taking desired actions. Drift's integration with Google Analytics allows us to automatically send Drift events to Google Analytics so that you can track your visitors' interactions.
Drift Insider Note:
Did you know we have a class on this topic over on Drift Insider? Check it out HERE
Currently, we send eleven Drift events to Google Analytics. These events appear as
In this doc, we'll cover
- how we define captured events
- setting up the integration
- connecting to a specific Tracking ID if you have more than one
- configuring which events you'd like to track
- what you'll see within Google Analytics
- associating goals in Google Analytics to Drift events
Understanding Captured Events
Let's define what these captured events mean!
The "startConversation" event fires when the user starts a new chat.
The "message:sent" event fires when the user replies to a conversation. It appears as "Message Sent."
The "message" event fires when the user receives a message from a team member. It appears as "Message Received."
The "emailCapture" event fires when the user identifies through an Email Capture Campaign, completes an email capture from inside the Widget, or if they simply type their email into a message. It appears as "Email Captured."
The "phoneCapture" event fires when a user provides a phone number in chat. Currently, it only works for US phone numbers. It appears as "Phone Number Captured."
The "scheduling:meetingBooked" event fires when the user books a meeting with a member of your team. It appears as "Meeting Booked."The "conversation:playbookFired" event fires whenever a leadbot Playbook fires to a visitor. It appears as "Playbook Fired."
The "conversation:playbookClicked" event is triggered when the user interacts with a Playbook from a greeting by clicking on the message or widget button. It appears as "Playbook Clicked."
The "conversation:ButtonClicked" event fires when the user clicks on a button in chat as a response to a question. It appears as "Button Clicked.
The "conversation:playbookDismissed" event is triggered when the user dismisses a message from a Playbook by clicking on the close button next to the message. It appears as "Playbook Dismissed."
The "conversation:firstInteraction" event fires for the first site visitor message in each unique conversation thread, or each distinct conversation ID. It appears as "First Interaction."
How to integrate:
From within your Drift account, head to Settings > App Settings > Integrations and click on Google Analytics, or click here!
Then click Connect!
If you only have one Tracking ID, that's all there is to it! You'll automatically start seeing Drift data in your Google Analytics dashboard.
Specifying a Tracking ID
If you have more than one Tracking ID type in its value. Click Save to enable your changes!
Choosing which Events to Track
While we currently offer eleven trackable events, you may not want to sync all of those. Once you've connected the integration, you can select which Drift events you want to send over to Google Analytics.
We default to sending all events to Google Analytics.
Within Google Analytics
You can see the events in Google Analytics in your Events dropdown under Behavior :
Associate Google Analytics Goals with Drift Events
In Google Analytics, "goals measure how well your site or app fulfills your target objectives. A goal represents a completed activity, called a conversion, that contributes to the success of your business."
You can associate your Google Analytics goals with these events captured from Drift
First, you'll want to click the Admin gear icon in Google Analytics, click into the Goals section, and ck
Name your goal and choose "Event" as the type. Click Continue.
Set the category as "Equals to" and "Drift Widget".
Based on the event you're configuring your goal with, Based on which action you want to trigger a o based off of, you'll use Action Equal To "Chat Started", "Email Captured", "Meeting Booked" etc.
Keep the Label and Value fields blank!
Lastly you'll want to turn off the toggle that reads "Use the Event Value as the Goal Value for the conversion" and set any monetary value greater than 0.
You can verify the goal to make sure it's reading your events correctly and then click Save!
Do these events affect my bounce rate?
Depending on which events you've chosen choosing to sync, these events may be affecting your bounce rate as you're calculating it, according to your personal use case.
All events currently synced to Google Analytics may count against your bounce rate and time metrics, with the exception of "Playbook Fired" and "Message Received," which are sent as non-interaction events. You can mark these events as a "non-interaction hit" by following this Google Analytics help doc.
How many Tracking ID's can I use with Google Analytics?
Currently, our integration with GA is limited to one Tracking ID. However if you'd like to listen to events on a second Tracking ID, you could do so via the widget API. For further info this check out our dev doc here: https://devdocs.drift.com/docs/drift-events#conversation-events
Did You Know?
You can view our training video about setting up Integrations our Drift Insider pages? Click HERE to learn more!