Using hotjar within zendesk
Hello,
I'm trying ton install the hotjar script for tracking visitors' behaviour on zendesk but it doesn't seem to work, though it looks quite straight forward and easy.
What I'm doing :
go into the guide admin > personnalise menu > edit theme > document head
there I copy paste the hotjar code :
<!-- Hotjar Tracking Code for https://<my-site>.zendesk.com/hc--> <script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:<my-hotjar-id>,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); </script>
and when inspecting the generated html afterwards everything looks as expected with the code within the <head></head> tag,
though hotjar still can't access visits info from my zendesk HC.
Has anyone succeeded and could give some directions on the way forward ?
Regards
-
We use the Pathfinder app. I am not familiar with hotjar. I'll see if someone else is...
-
Hi Guillaume
I'm sure you are already doing this, but just to make sure - You do change the "my-hotjar-id" to your actual ID in that hotjar code you pasted in your question right?
-
Hello,
Yes sure that's what I do 😊. Thanks for checking though.
-
Hello Guillaume,
I work on the support team at hotjar! It seems like you have taken the right steps. To install the hotjar tracking code in your Zendesk help center theme you need to do the following actions:
- In Guide, click the Customize design icon in the sidebar.
- Then click Edit theme.
- Paste your Hotjar tracking code in the Document Head template.
Then you can set up the Hotjar tools in your Hotjar account!
We can check your tracking code and setup for you but we would need to check this in our system. Can you send an email to support@hotjar.com? We will need the URL of the site you where you are trying to install the Hotjar tracking code.
Thanks!
Meaghan
-
Hey Meaghan - thanks for jumping in!
-
Hi,
Thanks a lot indeed.
Look, I don't think I've changed much since before but now it is working. Might be that some other overall settings were changed meanwhile by colleagues, I will never know...
However yes that was the way to go, and that at least will stay if others get the same question later.
Thanks again,
Please sign in to leave a comment.
6 Comments