| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Implement Google Tag Manager | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Implement Google Tag Manager
Hi All,
Does anyone has any experience implementing Google Tag Manager? What is the best place to put the tag manager tag? And did anyone success to parse e-commerce values into the tag manager as well? Thanks for the replies. -Niki
__________________
Best regards, Niki Buitenrust Hettema X-Cart Gold 4.1.8 (Live & Loaded) Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more... |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Implement Google Tag Manager
I am testing it right....
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
Re: Implement Google Tag Manager
How did the testing go?
Is there a tutorial available for adding Google Tag Manager with the Ecommerce Variables into X-Cart. Steve
__________________
Steve J Racicot X-Cart Consultant Version 4 and 5 |
|||||||
#4
|
|||||||
|
|||||||
Re: Google Tag Manager for XC5
Can someone explain why Google Tag Manager is so difficult to get setup on this platform. Its rediculous.
Ive tried everything, including adding the {literal} {/literal} before the script code, and nothing. In fact the Google Tag Manager code breaks my site, and turns it into some lines of code. Luckily, removing the tag manager code fixes the problem. But seriously, can someone post a concise tutorial for this. I see there are lots and lots of people who have been trying to do this since 2008!!!!
__________________
Enviromon.net |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Implement Google Tag Manager
How did you add the code?
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Implement Google Tag Manager
Did anyone get this to work? Heck I can't even figure out which google adwords instructions work right. There are several here, but none in awhile. When I tried the code, it was a mess in google console. I would prefer just to do the tag manager like with the rest of my website. x-cart is definitely not google code friendly.
__________________
Mary Lee ------------------- Dinner and a Murder Mystery Games http://www.dinnerandamurder.com x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: Implement Google Tag Manager
This is pretty clear what to do - https://developers.google.com/tag-manager/quickstart
In XC4 you can add this snippet to home.tpl for your skin. This will add Google Tag Manager to the site. You should configure any tracking within your Google Tag Manager account not XC
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#8
|
|||||||
|
|||||||
Re: Implement Google Tag Manager
My Analytics guy is trying to help me set up Google Tag Manager and told me to make the following changes to the home.tpl file in my skin (Reboot):
Install Google Tag Manager Copy the code below and paste it onto every page of your website. Paste this code as high in the <head> of the page as possible: <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:''; j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-*******');</script> <!-- End Google Tag Manager --> Additionally, paste this code immediately after the opening <body> tag: <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-*******" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> (GTM-******* represents my google tag number) When I tried to add the code (even in various positions in the <head> section) the site would not load. Any ideas and has anyone got Google Tag Manager to work?
__________________
X-Cart Gold Plus 4.7.9 w X-Affiliate, X-Configurator, X-AOM, X-SpecialOffers, BCSE Global Product Options, BCSE Product Packaging, Reboot responsive template |
|||||||
#9
|
|||||||||
|
|||||||||
Re: Implement Google Tag Manager
Quote:
When inserting this code you should wrap it into {literal} Smarty tags, otherwise Smarty engine will try to parse expressions that start with curly brackets.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#10
|
|||||||
|
|||||||
Re: Implement Google Tag Manager
Thanks Alex, that coding change worked perfectly ... so I then disabled the x-cart Google Analytics module (to avoid double-tracking with the new tag manager) but my Google Analytics guy is now saying:
"It sounds like we need your x-cart Google Analytics module activated to have the ecommerce functionality in the Google Analytics code, and I need to be able to put cross-domain tracking functionality in the Google Analytics code by means of Google Tag Manager, but as it stands now, we can't do both at once or we'll have two Google Analytics tracking codes running and they'll send 2 pageview hits instead of one - essentially doubling your pageviews in the Google Analytics reports." The issue here is that customers routinely go from one of our other static web sites, to our X-Cart site to place their order, which sends them to the credit card processor's site for payment processing, then returns them to the X-Cart site when completed. So we need Google Analytics to track this process as one continuous customer engagement - not 3 or 4 separate ones. Anyone have any ideas?
__________________
X-Cart Gold Plus 4.7.9 w X-Affiliate, X-Configurator, X-AOM, X-SpecialOffers, BCSE Global Product Options, BCSE Product Packaging, Reboot responsive template |
|||||||
|
|||
X-Cart forums © 2001-2020
|