The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Adding analytics javascript (HotJar) to site.

3 posters

Go down

Solved Adding analytics javascript (HotJar) to site.

Post by Guest October 12th 2017, 9:28 am

Hi peeps,

I'm looking to add some analytics to our forum and it needs to be done via the head tags of each page in Javascript.

I have tried to add this via: Admin > Modules > HTML & JAVASCRIPT > Javascript codes management > (placement) in all pages. The page still won't verify going this route.

I wasn't sure what to do with the title field so i just made it up. Here is the instructions: Copy and paste the code snippet into the <head> tag on every page where you wish to track visitors and collect feedback. I've adjusted some info in the code to keep it anonymous - but provided something as an example.

code is:
<!-- Hotjar Tracking Code for http://www.mywebsiteinhere.com -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:653238,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>

Any help implementing this would be super. Thanks again!
avatar
Guest
Guest


Back to top Go down

Solved Re: Adding analytics javascript (HotJar) to site.

Post by SLGray October 12th 2017, 7:09 pm

Have you tried Google Analytics?

AP > General > Statistics > Google Analytics


Adding analytics javascript (HotJar) to site. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51410
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Adding analytics javascript (HotJar) to site.

Post by Guest October 16th 2017, 10:15 am

SLGray wrote:Have you tried Google Analytics?

AP > General > Statistics > Google Analytics

As I have to put in the GA Tracking ID in it's not relevant for the Javascript - which I needed to put in the header tags of the sites pages. Unless I'm missing something?
avatar
Guest
Guest


Back to top Go down

Solved Re: Adding analytics javascript (HotJar) to site.

Post by Ace 1 October 16th 2017, 2:43 pm

Um, why not just go to AP > Display > Templates > General > overall_header and look for this line:

Code:
<!-- END google_analytics_code -->

Simply paste your script immediately afterward, then save and publish the template.
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: Adding analytics javascript (HotJar) to site.

Post by Draxion October 16th 2017, 4:09 pm

When posting code, please remember to use the code tags.
Code:
[code][/code]
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Adding analytics javascript (HotJar) to site.

Post by Guest October 17th 2017, 9:27 am

Thanks to ACE1 this problems now solved! Thank you! Very Happy
avatar
Guest
Guest


Back to top Go down

Solved Re: Adding analytics javascript (HotJar) to site.

Post by Draxion October 17th 2017, 3:31 pm

Thank you @Ace 1!

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum