Segment allows website owners to collect data via an API and send it to hundreds of marketing, analytics and sales tools including Google Analytics, Salesforce, MailChimp, and Intercom.
The integration allows you to instantly send customer data to Hotjar. Add or update the Hotjar Site ID in your Segment account and activate it by following the instructions below.
Setting up the Segment integration
Select Hotjar from Segment’s available integrations.
Edit your Settings.
You will need to add your Hotjar Tracking Code in the Site ID field. You can find your Tracking Code by going to Sites & Organizations and clicking on the Tracking Code button next to the site URL.
Wait for Segment to update.
Segment’s CDN is updated within 5-10 minutes when their snippet will start asynchronously loading Hotjar’s tracking snippet. At this point, you should remove Hotjar’s Tracking Code from your page if it's there already.
Hotjar will automatically start tracking visits and bound page events you have defined on your Hotjar profile.
Already placed Hotjar triggers will continue to function normally
Hotjar triggers that you have defined on your Hotjar profile and placed on your website should stay where they are.