The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Conversion Rate Optimization
    4. Google Ecommerce Tracking

    Google Ecommerce Tracking

    Conversion Rate Optimization
    6 3 160
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TimHolmes
      TimHolmes last edited by

      Hey all,

      I have GTM set up on a site and I am trying to enable the Ecommerce tracking functionality.

      My problem is this, I have access to the basket variables all they way through the checkout funnel to the payment page, but they are then lost on the payment completed page. Does anyone know how I can pass the value of the basket across to the payment completed page so I can mark the transaction completed with an actual value present. I cannot post hidden input fields or change the url get variables as the third party system that us used fails.

      I have thought maybe javascript calls, but not managed to get to work as yet. Can the Google session pass and hold them in the cookies that are set?

      Any help greatly appreciated.

      Cheers

      Tim

      1 Reply Last reply Reply Quote 1
      • BlueprintMarketing
        BlueprintMarketing last edited by

        Your transactional tag needs to fire on {{event}} equals transactionComplete. This way you’ll be 100 % certain that the data is in dataLayer by the time the tag fires, because the trigger event is pushed at the same times as the transactional data!

        dataLayer.push({

        'ecommerce': {
        'currencyCode': 'EUR', // Local currency, type string
        'impressions': [
        {
        'name': 'Triblend Android T-Shirt', // Name, type string
        'id': '12345', // ID, type string
        'price': '15.25', // Price, type string
        'brand': 'Google', // Brand, type string
        'category': 'Apparel', // Category, type string
        'variant': 'Gray', // Variant, type string
        'list': 'Search Results', // List, type string
        'position': 1 // Position, type number
        ...

        https://www.savio.no/analytics/easier-enhanced-ecommerce-product-promo-tracking

        dataLayer.push({
        'ecommerce' : {
        'purchase' : {
        'actionField' : , // WRONG! This key requires a value
        ...
        });
        dataLayer.push({
        'ecommerce' : {
        'purchase' : {
        'actionField' : '', // BETTER!
        ...
        });

        For example, if you’re using a Custom HTML Tag to build your eCommerce dataLayer, add an ‘event’ push in there, which you’ll then use as the firing rule for your transactional tags:

        case 'cart': // Track Add to Cart clicks
        dataLayer.push({'event':'addToCart',
        'ecommerce':{
        'add':{'actionField':{'list':pid.list},
        'products': [{
        'name':pid.name,
        ....code................
        'dimension1':pid.dimension1, // Discount in percent
        'metric1':pid.discount // Discount amount
        }]}}});
        ..........more code......................

        http://www.simoahava.com/analytics/track-content-enhanced-ecommerce/

        http://www.simoahava.com/analytics/enhanced-ecommerce-tips-and-learnings/

        https://www.savio.no/analytics/easier-enhanced-ecommerce-product-promo-tracking

        OoCXsuk.png

        TimHolmes 1 Reply Last reply Reply Quote 2
        • DmitriiK
          DmitriiK last edited by

          Hi there.

          It seems like you need to look into Enhance Ecommerce tracking from GA.

          Here is the link: https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce

          Hope it helps.

          1 Reply Last reply Reply Quote 1
          • TimHolmes
            TimHolmes last edited by

            Cheers Guys, i've looked into the methods before, just always struggled integrating into the sites poor architecture. Will try again. Much appreciated.

            Tim

            1 Reply Last reply Reply Quote 0
            • TimHolmes
              TimHolmes @BlueprintMarketing last edited by

              Cheers Tom, this does look like what I am after - will feedback if I get it going 🙂

              BlueprintMarketing 1 Reply Last reply Reply Quote 1
              • BlueprintMarketing
                BlueprintMarketing @TimHolmes last edited by

                Hi Tim,

                I am happy I could be of help. I ran into a similar issue and that was the fix it was good timing.

                Let me know if there's anything else I can do.

                All the best,

                Tom

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • How to track conversions?
                  TheeDigital
                  TheeDigital
                  0
                  6
                  203

                • Does anybody know of a reliable website phone call lead tracking service that integrates with Google Analytics?
                  TheeDigital
                  TheeDigital
                  1
                  5
                  173

                • Breadcrumbs for ecommerce site
                  Sheena_Schleicher
                  Sheena_Schleicher
                  0
                  2
                  957

                • How can I track if a landing page assists a lead/goal to another page in Google Analytics?
                  katemorris
                  katemorris
                  0
                  4
                  129

                • How can I track the lead to its referring site in my Google Analytics?
                  StreamlineMetrics
                  StreamlineMetrics
                  0
                  4
                  254

                • Goal Tracking in Google Analytics
                  ChristinaRadisic
                  ChristinaRadisic
                  0
                  4
                  293

                • Adwords Tracking
                  DavidKonigsberg
                  DavidKonigsberg
                  0
                  5
                  242

                • How to track PPC conversions?
                  VictorVC
                  VictorVC
                  0
                  6
                  811

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy