You just published and experience and you want to know its performance and the users behavior?
You'll find here different ways to use basic tracking scripts allowing you to collect the information you need.
To start with, you need to use the Fastory Tag Manager feature of your workspace.
By using these different scripts, the information will be displayed directly in your GoogleAnalytics account.
Track the number of visits on your experience with a Google Analytics script
1. Google Analytics
First of all, you need to get your Google Analytics script.
Go to Google Analytics and click on "Administration" then in the property column on "Tracking info" and "Tracking code".
You'll find your GA pixel (Global Site Tag) :
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-X"></script>
window.dataLayer = window.dataLayer || ;
gtag('js', new Date());
2. Fastory Tag Manager- Initialization script
Inside the Fastory Tag Manager, choose the event "When the visitor lands on the screen" and select the good experience in the list. Then paste your Google Analytics script in the grey box. This script is an initialization script and has to be triggered on the first screen.
3. Fastory Tag Manager - Script for page views
Now you only need to create a new script on the Fastory Tag Manager to register the page views on the different screens.
Select the event "When the visitor lands on a screen" and paste the following script with your GA inside :
Note : once you created your different scripts on the Fastory Tag Manager, don't forget to publish again you experience 🤓
Track the answers to an optin question in the bot
Choose the event "When there is an answer to an optin question" and select the bot you're interested in. You can also add a variable "optinvalue" if you wish to know the answers to this question.
eventLabel: 'Optin <<< VARIABLE OPTINVALUE >>>'
Track the type of information you need
The Tag Manager offers a complete list of events on which you can trigger Google Analytics pixels, Facebook pixels, CRM pixels etc...
Among these events:
- When the game starts
- When the bot closes
- When the visitor participates to a contest
- When the visitor clicks on a button
And a lot more...
Track the CTAs
A great way to track the buttons is to insert UTMs on the different links redirecting towards your website or social media.
Here is a very practical tool to build your URL with UTMs : https://ga-dev-tools.appspot.com/campaign-url-builder/
How to test that your scripts were correctly integrated
We recommend to use the free Chrome extension, Omnibug.
1. Activate Omnibug on private navigation
In Chrome parameters, click on "Extensions", select Omnibug and click on "details" and activate "Allow private navigation mode".
2. Open your experience in private navigation
3. Open Omnibug
Click right on the experience then "Inspect". Open the Omnibug tab.
Navigate in the experience and look on the Omnibug tab if the scripts you integrated are working: