- 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.
- 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.
Add this variable as your Gooogle Analytics Settings
In case you enabled have Enable overriding settings in this tag option switched on, you would need to define
customTaskfield in each of your Universal Analytics tags.
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('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:
tmr_lvid. The list of cookies can be expanded by request.
Please sign in to leave a comment.