- Getting started
- Integrating using Google Tag Manager (GTM)
- Integration with analytics.js (website code)
- Check if the integration works correctly
With the SegmentStream Universal Analytics connection, you can collect non-sampled hit-level data with unlimited dimensions and metrics using your existing Google Analytics tracker. This data is then stored in your Google BigQuery account, even if you're using the free version of Google Analytics.
Getting started
- Inside the admin panel navigate to Settings > Google Analytics.
- Choose Universal Analytics from the list.
- Configure the Referral exclusion list to match your Google Analytics property.
- Select the Integration type that suits you.
- Copy the Snippet code.
- Click Save and follow the further instructions to integrate the code.
Integrating using Google Tag Manager (GTM)
Choose this method if your Google Analytics is integrated using Google Tag Manager.
-
In the Variables section click New to create a customTask variable.
-
Click on the Variable Configuration > Custom JavaScript in Page Variables section:
-
Set SegmentStream as a Name of the variable. Paste code from the Data Source settings modal to Custom Javascript field. Click Save.
-
Add this variable as your Gooogle Analytics Settings
customTask
fieldIn case you enabled have Enable overriding settings in this tag option switched on, you would need to define
customTask
field in each of your Universal Analytics tags.Important! You can’t use more than one customTask in one GTM tag. The function of each new customTask overrides the function of the previous one. If it’s required to use several customTask functions in a single tag, you should join their JavaScript code within a single customTask using this guide.
-
Save the tag and Publish the container.
Integration with analytics.js (website code)
Choose this method if your Google Analytics integrated with website source code.
Add Snippet from analytics.js type to the website source code on each page after the command ga('create', 'UA-XXXXX-Y', 'auto');
and before ga('send', 'pageview');
:
ga('create', 'UA-XXXXX-Y', 'auto');
<% snippet code from admin panel %>
ga('send', 'pageview');
Check if the integration works correctly
-
Go to your website, open console > network and filter results with track.segmentstream endpoint. If the snippet is integrated correctly you will see requests:
-
Navigate to your Google BigQuery account and verify whether a table with the same name as the value of the Destination table field in the Universal Analytics connection appears in your dataset.
By default, SegmentStream collects the following cookies alongside with the hit data: _ym_uid
, _ga
, ssaid
, _fbp
, _fbc
, tmr_lvid
. The list of cookies can be expanded by request.
Comments
0 comments
Please sign in to leave a comment.