Post by dogart » Thu Nov 09, 2017 11:10 am

Howdy,

I want to install Hotjar and the instructions are . . .
"We generally recommend putting the Tracking Code inside the <head> area of your site."

Would I add this to the common/header.twig using Theme Editor in Opencart Dashboard
or FTP client and add it to
/catalog/view/theme/default/template/common/header.twig

Thanks in advance

New member

Posts

Joined
Tue Aug 15, 2017 9:58 pm

Post by dogart » Thu Nov 09, 2017 11:25 am

All sorted!

New member

Posts

Joined
Tue Aug 15, 2017 9:58 pm

Post by WKDesigns » Wed May 23, 2018 12:45 am

How did you end up getting it to work?

New member

Posts

Joined
Fri Nov 10, 2017 3:09 am

Post by sw!tch » Wed May 23, 2018 2:04 am

(e.g
/catalog/view/theme/default/template/common/header.twig

You would add it to the header before the closing </head> tag. I don't use the template editor, but assume that would work for you.

Full Stack Web Developer :: Send a PM for Custom Work / Fast Support.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Location - USA

Post by oh.mon » Thu Jul 16, 2020 9:56 am

Okay I wish I could understand but what I think is me following the instruction above just isn't working for me!

So I've been pasting the tracking code here: Design > Theme Editor > Default store (the only option) > common/header, and I paste the code before the closing </head> tag.

The code saves but nothing changes and Hotjar doesn't verify the code to be installed on my site.

Would be so grateful for a step-by-step or some detailed advice. Am not a coder in any way.

Newbie

Posts

Joined
Thu Jul 16, 2020 9:47 am

Post by sw!tch » Thu Jul 16, 2020 4:03 pm

That theme editor can be problematic.

If you don't want to touch the core code, you can just enable the Google Analytics module and paste your JS code there. The Google Analytics module can parse script tags and pull into the closing </head>.

Admin -> Extensions -> Analytics -> Google Analytics.

Full Stack Web Developer :: Send a PM for Custom Work / Fast Support.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Location - USA

Post by georgia93 » Wed Sep 16, 2020 11:21 pm

Hello all,

I am also wanting to add in the Hotjar code, however our site is currently operating version 2 of Opencart. How do I do this with an older version? (As I do not have themes etc).

Many thanks!

Newbie

Posts

Joined
Wed Sep 16, 2020 11:19 pm

Post by ADD Creative » Thu Sep 17, 2020 7:25 pm

Have you tried the suggestion in the post above yours? viewtopic.php?p=799564#p793542

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 8 guests