Adding analytics javascript (HotJar) to site.
3 posters
Page 1 of 1
Adding analytics javascript (HotJar) to site.
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!
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!
Guest- Guest
Re: Adding analytics javascript (HotJar) to site.
Have you tried Google Analytics?
AP > General > Statistics > Google Analytics
AP > General > Statistics > Google Analytics
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Adding analytics javascript (HotJar) to site.
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?
Guest- Guest
Re: Adding analytics javascript (HotJar) to site.
Um, why not just go to AP > Display > Templates > General > overall_header and look for this line:
Simply paste your script immediately afterward, then save and publish the template.
- Code:
<!-- END google_analytics_code -->
Simply paste your script immediately afterward, then save and publish the template.
Re: Adding analytics javascript (HotJar) to site.
When posting code, please remember to use the code tags.
- Code:
[code][/code]
Re: Adding analytics javascript (HotJar) to site.
Thanks to ACE1 this problems now solved! Thank you!
Guest- Guest
Similar topics
» JavaScript/CSS adding picture For VM notification.
» need help for this javascript about adding icon next to username
» ADDS~ showing up on site ~ To visitors on opening the site and also when viewing contents posts
» New Member: Site Did Not Send Email And NM Name Does Not Show On Site.
» Javascript
» need help for this javascript about adding icon next to username
» ADDS~ showing up on site ~ To visitors on opening the site and also when viewing contents posts
» New Member: Site Did Not Send Email And NM Name Does Not Show On Site.
» Javascript
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum