Does Frase integrate with Google Analytics?
You can send Frase events to your Google Analytics account and analyze behavior of Frase-influenced users.
Depending on how you've installed Google Analytics on your website, you will need to track Frase events differently:
Google Analytics directly installed on website (without Google Tag Manager)
If Google Analytics is directly installed on your website, Frase automatically sends events to your Google Analytics account. No additional coding is required.
Frase sends 2 events, with the following variables:
- Frase Input: every time a user asks a question
- event label: "frase_input"
- event category: "frase"
- Frase Funnel: every time a user clicks through to a new page view
- event label: "frase_funnel"
- event category: "frase"
These events will appear in Google Analytics under "Behavior" > "Events". Frase events wil
Frase events will appear under the "frase" Event Category:
Google Analytics through Google Tag Manager
You will need to create custom events on your Google Tag Manager account to track Frase events. Once you've created those events, you will need to use Frase's event listener to pass data into Google's Data Layer. Please read this guide if you need help creating Google Analytics events on Google Tag Manager.
Frase listens to the following events:
"frase_input": every time a user asks a question
frase.on("frase_input", function(){ // push event properties to your Data Layer });
"frase_funnel": every time a user clicks through to a new page view
frase.on("frase_funnel", function(){ // push event properties to your Data Layer });
Creating a Google Analytics Segment for Frase users
For A/B testing purposes, you will want to create a Google Analytics segment dedicated to Frase users. This will allow you to analyze behavior from Frase-influenced users, versus other segments.
More specifically, you will need to create a segment for users that have completed Frase-related events, such as "frase_input" or "frase_funnel".
Click "Add Segment" in Google Analytics, and create your event-based segment as shown below: