• Resolved madjedo

    (@madjedo)


    Hi, again, thanks for a great plugin.

    But I have activated to include “Customer data in data layer” in WooCommerce integration settings.

    I tried a test order and found that the fields are not populated after completing an order, all other e-commerce related fields are setup and populated correctly with value, tax and so on…

    This is what I get after completed order:

    {
      event: "gtm.scrollDepth",
      gtm: {
        uniqueEventId: 32,
        start: 1629189492848,
        scrollThreshold: 90,
        scrollUnits: "percent",
        scrollDirection: "vertical",
        triggers: "1_21"
      },
      pagePostType: "page",
      pagePostType2: "single-page",
      customerTotalOrders: 0,
      customerTotalOrderValue: "0.00",
      customerFirstName: "",
      customerLastName: "",
      customerBillingFirstName: "",
      customerBillingLastName: "",
      customerBillingCompany: "",
      customerBillingAddress1: "",
      customerBillingAddress2: "",
      customerBillingCity: "",
      customerBillingPostcode: "",
      customerBillingCountry: "",
      customerBillingEmail: "",
      customerBillingPhone: "",
      customerShippingFirstName: "",
      customerShippingLastName: "",
      customerShippingCompany: "",
      customerShippingAddress1: "",
      customerShippingAddress2: "",
      customerShippingCity: "",
      customerShippingPostcode: "",
      customerShippingCountry: "",
    }

    What’s odd is that, if I login as admin and then refresh the thank you page, the fields get populated with values.

    What do you think is going on? The site uses server cache, but is excluding cart & checkout pages. Do you think the customer data is stored empty in cache when visitor visits a product page? And shouldn’t these variables only be outputted on the order-received page?

    Kind Regards,

    Majd

Viewing 1 replies (of 1 total)
  • Thread Starter madjedo

    (@madjedo)

    Oh, I just noticed another setting below this one “order data in data layer”….

    Resolved then I guess?

    What’s the point of the “customer data in data layer” then? It’s for logged-in users?

Viewing 1 replies (of 1 total)
  • The topic ‘Bug in customer datalayer?’ is closed to new replies.