Adding analytics javascript (HotJar) to site.

Go down

Solved Adding analytics javascript (HotJar) to site.

Post by Guest on 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 on October 12th 2017, 7:09 pm

Have you tried Google Analytics?

AP > General > Statistics > Google Analytics


adding music - 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 : 46709
Reputation : 3275
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

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

Post by Guest on 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 on 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 : 842
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 on October 16th 2017, 4:09 pm

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


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as adding music - Adding analytics javascript (HotJar) to site. Solved11 when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

adding music - Adding analytics javascript (HotJar) to site. Draxio14
Draxion
Draxion
Support Moderator
Support Moderator

Male Posts : 2391
Reputation : 303
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

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

Post by Guest on 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 on October 17th 2017, 3:31 pm

Thank you @Ace 1!

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


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as adding music - Adding analytics javascript (HotJar) to site. Solved11 when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

adding music - Adding analytics javascript (HotJar) to site. Draxio14
Draxion
Draxion
Support Moderator
Support Moderator

Male Posts : 2391
Reputation : 303
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Back to top


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