The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Adding analytics javascript (HotJar) to site.

View previous topic View next topic Go down

Solved Adding analytics javascript (HotJar) to site.

Post by Wing6704 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!

Wing6704
Forumember

Male Posts : 65
Reputation : 1
Language : English

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 41144
Reputation : 2811
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

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

Post by Wing6704 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?

Wing6704
Forumember

Male Posts : 65
Reputation : 1
Language : English

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.
avatar
Ace 1
Helper
Helper

Male Posts : 831
Reputation : 62
Language : English - French?
Location : Druid Hill Park

http://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 when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1856
Reputation : 232
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

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

Post by Wing6704 on October 17th 2017, 9:27 am

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

Wing6704
Forumember

Male Posts : 65
Reputation : 1
Language : English

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 when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1856
Reputation : 232
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

View previous topic View next topic Back to top


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