Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1046566

    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 :)

    #1046613

    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

    #1046616

    Thank you! So just to make sure, is this would it should look like in function.php file? (see private area)

    #1046622

    Hi bobfurgo,

    You have two just the extra, you’ll have this code (moved to private content)

    Best regards,
    Nikko

    • This reply was modified 6 years ago by Nikko.
    #1046623

    Thanks Nikko!

    Can you please mark the above reply you just sent as private? Thanks again!

    #1046654

    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?

    #1046665

    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

    #1046678

    That’s perfect. thanks so much Nikko!

    Would you mind marking your post from 11::48pm as private? Thanks!

    #1046685

    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

    #1046770

    Hi bobfurgo,

    I have moved it to private content.
    Can you give us the screenshot?

    Regards,
    Nikko

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.