Segment allows website owners to collect data via an API and send it to hundreds of tools including Contentsquare. Contentsquare can be added as a Destination in Segment meaning you can use Segment to:
Install the Contentsquare Tag
All the necessary code will be injected into your site via the setup process in Segment (see steps below). Your Contentsquare tag will be injected into your site through Segment.
1. In Segment, go to ‘Connections’ and click Add Destination.
2. Search for Hotjar in the catalog and choose the JavaScript source you want to connect the destination to.
3. Add your Contentsquare Site ID to your Destination settings. You can find this ID in Account settings > Sites & Organizations.
Your changes will appear in the Segment CDN after 45 minutes, and then Analytics.js will start to asynchronously load Hotjar’s tracking snippet and send data. If you’re already using Contentsquare, remove Contentsquare’s snippet from your code.
Identify
Contentsquare will automatically ingest a User ID and any values sent over your Identify spec as traits, as long as session capture is enabled in Contentsquare.
Identify calls that do not have a User ID value will not be sent to Contentsquare.
Nested values or lists
Currently, the Contentsquare Identify API does not support ingesting values passed as nested objects or lists over your identify Spec:
Send data to Contentsquare using our Events API
Segment's Track calls can be automatically forwarded as events to Contentsquare through our Events API. We don’t pass any event properties from Segment as Contentsquare currently doesn't support them. With our Events API, you can start sending events taking place on your site to Contentsquare to help capture specific sessions and filter collected data in Contentsquare's tools to improve your insights.