Hotjar is a popular behavioral analytics platform, suitable for marketing teams and product managers to better understand and improve their product. It allows them to understand the behavior of their website’s visitors through heat maps, surveys, and conversion funnels.
RudderStack helps you integrate your website with Hotjar to auto-track your user data.
In the web device mode integration, that is, using JavaScript SDK as a source, RudderStack loads the Hotjar native SDK from thehttps://static.hotjar.com/ domain.
Based on your website’s content security policy, you might need to allowlist this domain to load the Hotjar SDK successfully.
Get started
Once you have confirmed that Hotjar supports the source, perform the steps below:
From your RudderStack dashboard, add the source. Then, select Hotjar from the list of destinations.
Assign a name to your destination and click Next. You should see the following screen:
Connection settings
To successfully configure Hotjar as a destination in RudderStack, enter the following connection settings:
Site ID: Enter your Hotjar site ID. You can get your site ID by logging into your Hotjar account and navigating to Settings > Sites & Organizations.
Finally, click Next to complete the configuration. Hotjar will now be added and enabled as a destination in RudderStack.
Track
The track call leverages Hotjar’s Events API to track specific user actions.
A sample track call is as shown below:
rudderanalytics.track("custom_event");
To use the Hotjar Events API, you must be on Hotjar’s Plus, Business, or Scale plans.
Identify
The identify call lets you pass your user data to Hotjar, sending them as User Attributes.
Before you start making identify calls, make sure that User Attributes are enabled in your Hotjar dashboard for each site. Refer to this Hotjar support page for more information on enabling and disabling User Attributes.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.