• Hi there,

    I’ve setup your plugin twice recently and followed the guide exactly as written. I’ve also setup your plugin many times in the past with no issue.

    For some reason recently, when I follow the guide, I can’t get ecommerce events sent to Google Analytics. I can see all the other events are firing.

    https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking

    The regex i’m using is the one you mention in the guide, i have two tags, one for product impressions and one for the standard ecomm helper events. The only difference is the non interactive hit.

    This is the regex i’m using – gtm4wp.productClickEEC|gtm4wp.addProductToCartEEC|gtm4wp.removeFromCartEEC|gtm4wp.checkoutOptionEEC|gtm4wp.checkoutStepEEC|gtm4wp.changeDetailViewEEC

    I have the GA UA setting variable, I’m not seeing Enhanced Ecommerce in this but in each of my tags i’m overriding and setting the datalayer.

    The only way I’m getting it to work is by also adding this “gtm4wp.orderCompletedEEC” to my regex. Your guide doesn’t specifically say to do this though. I sent you an email through your actual website with a loom video to support this and show you my exact setup.

    Can you confirm what i might be doing wrong here. In the past, I’ve not had to add the orderCompleted to the regex, so I feel i’m just missing something in these recent setups or it’s something that’s part of my plugin configuration.

    Cheers

    Byron

Viewing 9 replies - 1 through 9 (of 9 total)
  • Same here. Initial thought is an oversight in the guide.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Byron and @jranalytics,

    Usually such behavior happen if the order of the codes are not properly set or if there is a theme issue when the wp_head() hook is called in the wrong place.

    Without specifically seeing your sites I can not tell you any better details, but what you need to check is whether you see in the source code first the data layer and just then the GTM container code.

    gtm4wp.orderCompletedEEC is essentially not needed since the purhcase data is put into the data layer before the GTM container code, thus any tag firing during Page View (or Container Loaded as the new name states) will read this purchase data. If your tracked is solved when the gtm4wp.orderCompletedEEC event is added then this is another suspicion that the order of codes is for some reason broken.

    Hello @duracelltomi

    Facing the same issue as mentioned above. And like you said I see the data layer loading first and then the GTM container code.

    Pls let me know how to resolve.

    Thanks,
    Hitesh

    I have a similar issue – I’m getting the checkout steps in my GA events, but not the final transaction. My site is https://merryderma.com.pk and I’ve got the screenshot of the GA events (as tested live) at https://pasteboard.co/Jpq5Bf9.png For the life of me, I cannot figure out why it’s happening. I don’t see any JS errors, the data layer on the final /order-received page source code looks OK, and the GTM container follows immediately after.

    Would be much obliged if you could take a look.

    Many thanks!

    Same issue here…
    Followed the same guide. All steps of the checkout process are recorded in GA, except the final one:/.
    @superphysics @ezigs @pixelrush @jranalytics how did you solve the issue ?

    Thanks in advance for the help !

    Thanks for the answer @superphysics, but even with the “Do not flag orders as being tracked”, the ecommerce data are not shown on the order received page :/.
    So the purchase info are never transmitted to GA.

    I can see the purchase data into the gtm4wp.orderCompletedEEC but not directly on the order received page.

    @duracelltomi can u help me figure this out ? What could be the problem if I do like @pixelrush and I add the gtm4wp.orderCompletedEEC event in the list of tracked events.
    Here is a preprod that can be used to place an order.
    https://preprod.calacolori.com/

    Thanks again in advance for the time and help

    BR
    Amaury

    And thanks @duracelltomi for this fabulous plugin !

    • This reply was modified 3 years, 9 months ago by amauryt.

    Hello again @duracelltomi,

    Here is a log of whats events and what are in the dataLayers from a addToCart to the orderReceive page.

    We can see as mentionned, that the ecommerce purchase property is only present on the orderCompletedEEC event and so not available on pageview :/

    Hope you will be able to help me with that !
    Thanks again for the time and help !

    Push( gtm4wp.addProductToCartEEC )
    datalayer-checker.js:61 "event": "gtm4wp.addProductToCartEEC",
    "ecommerce": {
      "currencyCode": "EUR",
      "add": {
        "products": [
          {
            "name": "T-shirt Enfant Coton Bio – Veille sur la Nature – Tortue de Mer",
            "id": 6104,
            "price": 26,
            "category": "T-shirts Bio Gar?on",
            "stocklevel": "",
            "variant": "burgundy,3-4-ans",
            "quantity": "1"
          }
        ]
      }
    }
    Navigated to https://preprod.calacolori.com/produit/t-shirt-enfant-coton-bio-veille-sur-la-nature-tortue-de-mer/
    datalayer-checker.js:60 Push()
    datalayer-checker.js:61 
    "visitorLoginState": "logged-in",
    "visitorType": "administrator",
    "productRatingCounts": [],
    "productAverageRating": 0,
    "productReviewCount": 0,
    "productType": "variable",
    "productIsVariable": 1,
    "ecomm_prodid": 6037,
    "ecomm_pagetype": "product",
    "ecomm_totalvalue": 26
    
    datalayer-checker.js:60 Push( gtm4wp.productImpressionEEC )
    datalayer-checker.js:61 "event": "gtm4wp.productImpressionEEC",
    "ecommerce": {
      "currencyCode": "EUR",
      "impressions": [
        {
          "name": "T-shirt gar?on Coton Bio - Plumes Ocres et Bleus",
          "id": 2764,
          "price": "26.00",
          "category": "T-shirts Bio Gar?on",
          "position": 1,
          "list": "Related Products",
          "stocklevel": "",
          "brand": ""
        },
        {
          "name": "T-shirt Gar?on Coton Bio – Petit Chef",
          "id": 5094,
          "price": "26.00",
          "category": "T-shirts Bio Gar?on",
          "position": 2,
          "list": "Related Products",
          "stocklevel": "",
          "brand": ""
        },
        {
          "name": "T-shirt Fille Coton Bio – Laisse fleurir tes pensées",
          "id": 3985,
          "price": "26.00",
          "category": "T-shirts Bio Fille",
          "position": 3,
          "list": "Related Products",
          "stocklevel": "",
          "brand": ""
        },
        {
          "name": "T-shirt Fille Coton Bio – Tisse tes Rêves",
          "id": 5505,
          "price": "26.00",
          "category": "T-shirts Bio Fille",
          "position": 4,
          "list": "Related Products",
          "stocklevel": "",
          "brand": ""
        }
      ]
    }
    
    datalayer-checker.js:60 Push( gtm4wp.changeDetailViewEEC )
    datalayer-checker.js:61 "event": "gtm4wp.changeDetailViewEEC",
    "ecommerce": {
      "currencyCode": "EUR",
      "detail": {
        "products": [
          {
            "name": "T-shirt Enfant Coton Bio – Veille sur la Nature – Tortue de Mer",
            "id": 6104,
            "price": 26,
            "category": "T-shirts Bio Gar?on",
            "stocklevel": "",
            "variant": "burgundy,3-4-ans"
          }
        ]
      }
    },
    "ecomm_prodid": "6104",
    "ecomm_pagetype": "product",
    "ecomm_totalvalue": 26
    
    Navigated to https://preprod.calacolori.com/panier/
    datalayer-checker.js:60 Push()
    datalayer-checker.js:61 
    "visitorLoginState": "logged-in",
    "visitorType": "administrator",
    "ecomm_prodid": [	6104],
    "ecomm_pagetype": "cart",
    "ecomm_totalvalue": 26
    
    Navigated to https://preprod.calacolori.com/checkout/
    datalayer-checker.js:60 Push()
    datalayer-checker.js:61 
    "visitorLoginState": "logged-in",
    "visitorType": "administrator",
    "ecomm_prodid": [	6104],
    "ecomm_pagetype": "cart",
    "ecomm_totalvalue": 26,
    "ecommerce": {
      "currencyCode": "EUR",
      "checkout": {
        "actionField": {
          "step": 1
        },
        "products": [
          {
            "id": 6104,
            "name": "T-shirt Enfant Coton Bio – Veille sur la Nature – Tortue de Mer",
            "sku": 6104,
            "category": "T-shirts Bio Gar?on",
            "price": 26,
            "stocklevel": 487,
            "variant": "burgundy,3-4-ans",
            "quantity": 1
          }
        ]
      }
    }
    datalayer-checker.js:60 Push( gtm4wp.checkoutStepEEC )
    datalayer-checker.js:61 "event": "gtm4wp.checkoutStepEEC",
    "ecommerce": {
      "checkout": {
        "actionField": {
          "step": 3
        },
        "products": [
          {
            "id": 6104,
            "name": "T-shirt Enfant Coton Bio – Veille sur la Nature – Tortue de Mer",
            "sku": 6104,
            "category": "T-shirts Bio Gar?on",
            "price": 26,
            "stocklevel": 487,
            "variant": "burgundy,3-4-ans",
            "quantity": 1
          }
        ]
      }
    }
    datalayer-checker.js:60 Push( gtm4wp.checkoutStepEEC )
    datalayer-checker.js:61 "event": "gtm4wp.checkoutStepEEC",
    "ecommerce": {
      "checkout": {
        "actionField": {
          "step": 4
        },
        "products": [
          {
            "id": 6104,
            "name": "T-shirt Enfant Coton Bio – Veille sur la Nature – Tortue de Mer",
            "sku": 6104,
            "category": "T-shirts Bio Gar?on",
            "price": 26,
            "stocklevel": 487,
            "variant": "burgundy,3-4-ans",
            "quantity": 1
          }
        ]
      }
    }
    datalayer-checker.js:60 Push( gtm4wp.checkoutOptionEEC )
    datalayer-checker.js:61 "event": "gtm4wp.checkoutOptionEEC",
    "ecommerce": {
      "checkout_option": {
        "actionField": {
          "step": 3,
          "option": "Shipping: flat_rate:3"
        }
      }
    }
    datalayer-checker.js:60 Push( gtm4wp.checkoutOptionEEC )
    datalayer-checker.js:61 "event": "gtm4wp.checkoutOptionEEC",
    "ecommerce": {
      "checkout_option": {
        "actionField": {
          "step": 4,
          "option": "Payment: stripe"
        }
      }
    }
    datalayer-checker.js:60 Push( gtm4wp.checkoutOptionEEC )
    datalayer-checker.js:61 "event": "gtm4wp.checkoutOptionEEC",
    "ecommerce": {
      "checkout_option": {
        "actionField": {
          "step": 3,
          "option": "Shipping: flat_rate:3"
        }
      }
    }
    datalayer-checker.js:60 Push( gtm4wp.checkoutOptionEEC )
    datalayer-checker.js:61 "event": "gtm4wp.checkoutOptionEEC",
    "ecommerce": {
      "checkout_option": {
        "actionField": {
          "step": 4,
          "option": "Payment: stripe"
        }
      }
    }
    
    Navigated to https://preprod.calacolori.com/checkout/order-received/6636/?key=wc_order_jAiS7IITmc85B
    datalayer-checker.js:60 Push( gtm4wp.orderCompletedEEC )
    datalayer-checker.js:61 "visitorLoginState": "logged-in",
    "visitorType": "administrator",
    "event": "gtm4wp.orderCompletedEEC",
    "ecommerce": {
      "currencyCode": "EUR",
      "purchase": {
        "actionField": {
          "id": "6636",
          "affiliation": "",
          "revenue": 32,
          "tax": 0,
          "shipping": 6,
          "coupon": ""
        },
        "products": [
          {
            "id": 6104,
            "name": "T-shirt Enfant Coton Bio – Veille sur la Nature – Tortue de Mer",
            "sku": 6104,
            "category": "T-shirts Bio Gar?on",
            "price": 26,
            "stocklevel": 486,
            "variant": "burgundy,3-4-ans",
            "quantity": 1
          }
        ]
      }
    },
    "ecomm_prodid": [	6104],
    "ecomm_pagetype": "purchase",
    "ecomm_totalvalue": 26

    I have exactly the same problem. Has anyone found a solution? I have already googled and tested a lot. Unfortunately gtm4wp.orderCompletedEEC is not passed.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Do I need to add gtm4wp.orderCompletedEEC to my regex?’ is closed to new replies.