Post by kiriup » Sat Feb 04, 2023 1:31 am

Hello

I would like to use a more privacy focused analytic like Matomo with my opencart (3.0.2.0) site but the recommended (by matomo) OC extension doesn't exist anymore and i cant find any other relevant extensions.

I can setup/self host matomo in Cpanel but i don't know how to integrate it in my opencart without the help of an extension. I need some help with implementing it manually if such a thing is even possible for an amateur like me.

According to Matomo they will "issue you with a JavaScript tag. This code must appear on every page that you want Matomo to analyze. We recommend that you paste this code immediately before your closing </head> tag (or in a general header file that is included at the top of all your pages)."
I am new to website building and i am learning as i go so i don't really understand exactly what the above means. Which files do i have to edit to add the JavaScript tag? Is it all the header.php that i can find under public_html files or is it something more complicated? Also do i need to do anything else in opencart after adding the JavaScript tag?

Newbie

Posts

Joined
Fri Jan 18, 2019 9:42 pm

Post by ADD Creative » Sat Feb 04, 2023 1:40 am

Use the built in Google Analytics extension, but paste the Matomo code there and not the Google code.

www.add-creative.co.uk


Guru Member

Posts

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

Post by kiriup » Sat Feb 04, 2023 3:16 am

OK wow i didn't expect to find a simple solution so i never even considered this. Thank you for the info, i will test it and i will report back here by tomorrow with the results.

Newbie

Posts

Joined
Fri Jan 18, 2019 9:42 pm

Post by kiriup » Sat Feb 04, 2023 6:56 am

OK i can confirm that this works! For some reason it took about an hour to show any statistics after i enabled it but after that it works perfectly. Thank you again for the help!

Newbie

Posts

Joined
Fri Jan 18, 2019 9:42 pm

Post by paulfeakins » Mon Feb 06, 2023 8:11 pm

We use Matomo on our main site www.antropy.co.uk and it's so much easier to see the info you want than Google Analytics.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by konzeptplus » Mon May 06, 2024 5:07 pm

Hello
Ive been trying to follow this forum exchange to add matomo to my jcart, but it seems that the built in google analytic's were removed from the 4.0.2.3 version. Are there any alternatives ways to connect it?
I am grateful for any help

Newbie

Posts

Joined
Mon May 06, 2024 3:37 pm

Post by paulfeakins » Tue May 07, 2024 11:42 pm

konzeptplus wrote:
Mon May 06, 2024 5:07 pm
Ive been trying to follow this forum exchange to add matomo to my jcart, but it seems that the built in google analytic's were removed from the 4.0.2.3 version. Are there any alternatives ways to connect it?
What's JCart?

Anyway, you could pay a developer to add it?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by procheck » Thu Aug 08, 2024 3:08 am

Hi,
I just saw this post and I've added the code. It partially works. I see that I get visits but there are no detailed logs. In Opencart Analytics, I get an error code: 1015 .
I cannot find any info on this. Does anyone know what this error is?
Thanks
Al

New member

Posts

Joined
Tue Jul 23, 2013 9:42 am

Post by paulfeakins » Thu Aug 08, 2024 7:45 pm

procheck wrote:
Thu Aug 08, 2024 3:08 am
In Opencart Analytics, I get an error code: 1015 .
What's "Opencart Analytics"?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by procheck » Thu Aug 08, 2024 9:57 pm

I don't know what else to call it. In Opencart the extension section where Google Analytics is set up.

New member

Posts

Joined
Tue Jul 23, 2013 9:42 am

Post by paulfeakins » Thu Aug 08, 2024 10:36 pm

procheck wrote:
Thu Aug 08, 2024 9:57 pm
I don't know what else to call it. In Opencart the extension section where Google Analytics is set up.
Precise terminology is very important. Now you've called it an "extension" but it's not an extension because it's part of OpenCart.

So you mean the input box in the OpenCart settings where you're supposed to paste in the Google Analytics code?

The problem is probably security like ModSecurity or Immunify at your web host - ask them.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by procheck » Fri Aug 09, 2024 1:58 am

Yes I mean where we paste Google Analytics code which I why I referred to it as Analytics in my post. Since that wasn't the correct term, I went into Opencart and the heading says Choose the extension type where Analytics is an option. Can I ask what that section is called then?

I'll check out the ModSecurity. Thanks for your help.

New member

Posts

Joined
Tue Jul 23, 2013 9:42 am

Post by paulfeakins » Fri Aug 09, 2024 7:07 pm

procheck wrote:
Fri Aug 09, 2024 1:58 am
Yes I mean where we paste Google Analytics code which I why I referred to it as Analytics in my post. Since that wasn't the correct term, I went into Opencart and the heading says Choose the extension type where Analytics is an option. Can I ask what that section is called then?
I do apologise - its location has moved and it is now indeed listed as an "extension" in: Home > Extensions > Google Analytics.

procheck wrote:
Fri Aug 09, 2024 1:58 am
I'll check out the ModSecurity. Thanks for your help.
Yes, ask your host, I'd bet it's this.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Mariogs and 31 guests