This guide describes how to set up the data collection necessary to use SegmentStream's advertising optimisation feature. The data collected includes non-personally identifiable information in the form of click IDs and cookies.
- Make sure you've connected Google Analytics 4 Streaming through GTM.
- Grant BigQuery access for your GCP project where GA360 data is stored for the SegmentStream support team.
Cookies custom fields setup
By default, Google Analytics 4 doesn't collect any data about first-party cookies like
_ttp and others. These cookies are required for the server-side conversion tracking and need to be collected into BigQuery.
Below you can find a step-by-step tutorial on how to do this.
Inside your Google Tag Manager go to Variables, click New and choose the 1st Party Cookie variable type from the list:
Define your Variable Name (i.e.
fbpfor Facebook's 1st party cookie ID), set Cookie Name depending on the cookie which value you would like to collect:
_fbp- for Facebook 1st party cookie
_ttp- for TikTok 1st party cookie
And click Save.
Open your GA4 Streaming Configuration tag and define an additional field (make sure you use the correct field name and value):
Click Save and Publish the container.
Please sign in to leave a comment.