Fixel events can be used in Segment to ensure consistent user tagging across various platforms.
Integrating Fixel with Segment using DOM Events
To trigger the Fixel events in Segment, simply add this snippet to your site:
document.addEventListener('fxl_event', function(event) { analytics.track("Fixel", { fixelScore: event.class, fixelSegment: event.codeName }); })
Integrating Fixel with Segment using GTM
- Log in to your GTM account. This must container must already contain the Fixel installation (detailed instructions here)
- Create a new Tag of the type ‘Custom HTML’
- Name the Tag in a descriptive manner, e.g. ‘Fixel Segment Event’
- Paste the following code snippet:
<script> analytics.track("Fixel", { fixelScore: {{Fixel_eventAction}}, fixelSegment: {{Fixel_eventLabel}} }); </script>
- Add a Trigger to the Tag – ‘Fixel Trigger’
- Save the Tag and Publish the container
And voilà, you’re ready to build your smart audiences!