Post by bg17aw » Tue Jul 21, 2020 3:51 pm

Hi,
Google says there are two different code snippets that need to be installed for Google Tag Manager, one in the HEAD section of the site, one in the BODY section:
https://developers.google.com/tag-manager/quickstart

I am trying to use the included Google Analytics extension (that comes with OpenCart 2.1.0.2

However, you can only add code to the HEAD section from there.

Any idea how to install Google Tag Manager on OpenCart?

Thanks

Newbie

Posts

Joined
Thu Jan 19, 2017 2:44 am

Post by EvolveWebHosting » Tue Aug 04, 2020 12:59 am

You could use an extension like this if you don't want to alter the Opencart code yourself.
https://www.opencart.com/index.php?rout ... load_id=47

Otherwise, you'd need to edit the header.tpl or header.twig file of your theme to add the suggest code.

Image
Black Friday Specials Active Now https://www.evolvewebhost.com/blog/blac ... riday_2020
Detailed guide on how to install Opencart


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by mikahawkins » Sat Oct 10, 2020 1:53 pm

Hello,
You can try this.
1.Create an account, or use an existing account, at tagmanager.google.com. (A new container is created by default, and you can create additional containers within each account.)
2.Install the container in your website or mobile app.
3.Add and publish your tags.
Regards,
Mika Hawkins

Newbie

Posts

Joined
Fri Sep 18, 2020 2:54 pm

Post by JNeuhoff » Sat Oct 10, 2020 4:38 pm

The Google Tag Manager uses a data layer for tracking various standard ecommerce activities, therefore requires modifications of various OpenCart files to get it to work. We have an GTM OpenCart extension for this which gives support for the enhanced ecommerce tracking events.

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 13 guests