Google Analytics Integration

Updated 1 month ago by Jason Li

Integrating will give us permission to automatically send Drift events to GA. Specifically, Drift events will include startConversation, emailCapture, and scheduling:meetingBooked.

This tutorial is a one-click solution. If you would rather connect to Google Analytics via our Javascript SDK, here's how!

The 3 goals this integration tracks are: Conversation Started, Meeting Booked, and Email Captured without any additional configuration from you!

How to integrate:

  • Within your Drift account, go to Team Settings > Apps. Then find the Google Analytics app.
  • Then click Connect!

After you connect:

Most people only have one Tracking ID and on their website, and we'll pick the first Tracking Name, so you most likely won't have to worry about this part at all.

However, if you would like to specify Tracking Name, you can override it by typing your own. Just must make sure the name is already in your Google Analytics. See how to check here.

In Google Analtyics: 

You can see the events in Google Analytics in your Events tab: 


Events we send to Google Analytics

We send three events to GA. 

"Chat Started", "Email Captured", "Meeting Booked"
          

Chat Started fires when a user chats in from a welcome message. If the user engages with a playbook, this event will not fire.

Email Captured will fire any time a user provides their email. This can be in a email-capture question or directly in the chat.

Meeting Booked will fire anytime a meeting is booked with our calendar drop functionality.

In Google Analytics

If you want to associate specific goals with these Google Analytics events (if you want to trigger a goal based on these events, import the goal into Adwords and bid according to the leads the campaign gets via Drift!) 

First, you'll want to click on your Admin gear icon in Google Analytics, head to your goal section, and create a new goal. 

  • In your goal setup, you'll want to create a custom goal and press "continue" 

  • Next, in your Goal Description, you'll want to name your goal whatever you'd like and set the type to be "Event" . The press "Continue" 
  • Then, in your Goal Details you will set your category to be Equal To Drift Widget. 
  • Based on which action you want to trigger an event based off of, you'll use The Action Equal To: "Chat Started", "Email Captured", or "Meeting Booked". 
  • You will want to keep the Label field Blank 
  • And set the Value to be Greater Than Zero. 
  • Lastly you'll want to turn off the toggle that reads "Use the Event Value as the Goal Value for the conversion" and set a monetary value to the conversation
  • Make sure to save your new goal!

Was this article helpful?