Hello, i’d like to add a hotjar code inside the head tag on the homepage on my site. Can someone please provide advice on how to go about doing this? Thank you :)
Hey bobfurgo,
You can check our documentation on how to add it: https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#add-a-script-to-head-section
just post your hotjar code after the:
// Your script here
Hope this helps.
Best regards,
Nikko
Thank you! So just to make sure, is this would it should look like in function.php file? (see private area)
Hi bobfurgo,
You have two just the extra, you’ll have this code (moved to private content)
Best regards,
Nikko
Thanks Nikko!
Can you please mark the above reply you just sent as private? Thanks again!
I’m actually a bit confused. Are you saying the above code, as you provided should be exactly what is entered into the functions.php?
Hi bobfurgo,
You can use the code in private content and add it at the bottom of functions.php
I was just avoiding to post your hotjar code in public.
Regards,
Nikko
That’s perfect. thanks so much Nikko!
Would you mind marking your post from 11::48pm as private? Thanks!
Hi Nikki,
I just placed that exact code into the bottom of my child theme’s function.php and it ended up showing on the live site. I removed it so you can’t see it now but I can share a screenshot if needed. How do I implement this code but have it not show on the live site?
Thanks
Hi bobfurgo,
I have moved it to private content.
Can you give us the screenshot?
Regards,
Nikko