Support » Plugin: Google Tag Manager for WordPress » Accessing GTM4WP Enhanced Ecommerce Data Layer

  • Resolved overturn

    (@overturn)


    Hi, I use your plugin for Google’s ecosystem and that works fine.

    I also use if for Facebook’s Pixels and Events. It works as it should, except when it comes to tracking completed checkout purchase details like ‘Cart Value’. In the GTM data later the gtm4wp.orderCompletedEEC Event lists all relevant data as 0.

    I understand gtm4wp.orderCompletedEEC is no longer used in your plugin. Can you suggest how I go about manually referencing the completed order details which now reside in Enhanced Ecommerce layer.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    gtm4wp.orderCompletedEEC was planned to be removed in v1.11 but due to the high demand among plugin users and industry experts I decided to leave it there so you can keep using it although personally I wouldn’t use it.

    If this event is present in the data layer it means that GTM4WP was able to recognize the order received page correctly. Prices and revenue is queried using standard WooCommerce function calls so if they are 0 then my assumption is that there might be a conflict with another plugin.

    What WordPress and WooCommerce version are you using?
    Have you upgraded GTM4WP to v1.11.x this week?

    overturn

    (@overturn)

    It’s odd, all the other events work correctly and they have data in the event or computed state, it’s just the purchase event. I am going to test my caching plugin to see if it’s messing things up.

    My current versions are below:

    GTMW4P: 1.10.1
    WordPress: 5.2.4
    WooCommerce: 3.7.1

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Any other plugins related to WooCommerce? WPML? Multi currency plugin? Custom thank you page plugin?

    overturn

    (@overturn)

    No nothing of the sort, I use very little plugins and none that affect the datalayer.
    Have you investigated this issue before? I can see some support topics on this board with the same issue I have, but I don’t see a solution or pointers in them to point me in the right direction.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    There were reports earlier, you are right.

    Where I was able to investigate this, it turned out that some other plugin (like a custom order received page) or a very special 3rd party payment gateway caused the issue.

    overturn

    (@overturn)

    Thanks for the responses btw, I appreciate you are hands-on with your plugin.
    I think I know what the issue is. I was experimenting earlier in the week and I changed the trigger type from custom event to page load. This meant some values were undefined in relation to FB pixel.
    I am 90% sure that’s the issue and I will confirm once I revert the changes back, just just in case anyone has a similar issue.

    overturn

    (@overturn)

    Right so the issue is I was referencing ‘Cart.Total.Totals’ and as you can imagine when checkout is complete the cart is empty and values are zeroed.
    I am sharing this incase anyone has a similar issue and there is no obvious cause like plugin incompatibility etc at play.

    overturn

    (@overturn)

    Thanks for trying to assist me.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.