• I am experiencing a weird issue regarding the “Customer data in data layer” function for WooCommerce integration.

    I have tested this a lot… and it seems that customer data is ONLY being outputted to the datalayer, when I am logged into WordPress backend while doing my test orders.

    If I am NOT logged into WordPress backend and doing my testing from a “clear” inkognito browser, I keep getting the customer data variables with EMPTY values – like this:

    2022-05-12_10-07-54

    This is my clients current setup:

    WordPress
    Version 5.9.3

    WooCommerce
    Version 6.4.1

    Google Tag Manager for WordPress
    Version 1.15

    I hope someone can help me out here… ??

    Best regards,
    David

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m experiencing the same issue.
    See the screenshot here: https://pasteboard.co/raSUzGlDRvY2.jpg

    But I suppose it’s because probably, this is the correct behavior:
    https://www.ads-software.com/support/topic/the-datalayer-customer-data-is-empty-with-flatsome-and-checkout-woofunnel/

    Correct me if I’m wrong.

    This is my current setup:

    WordPress
    Version 6.0.1

    WooCommerce
    Version 6.8

    Google Tag Manager for WordPress
    Version 1.16.1

    Greetings,

    Matteo

    Hello,
    I also had the same issue and found a solution.

    To log data for all users making an order you have to go to GTM4WP settings -> Integration – > WooCommerce and choose “order data in data layer”.

    And then you can define the variables in Tag Manager:

    Currency – > orderData.totals.currency
    Value – > orderData.totals.total (or orderData.totals.subtotal if you need without tax/shipping)
    ID – > orderData.attributes.order_number
    Firstname – > orderData.customer.billing.first_name
    and so on for the other fields you need.

    The firing event for the tag is gtm4wp.orderCompletedEEC

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No customer data in datalayer for WooCommerce orders’ is closed to new replies.