Billing info not present in data layer when logged in as guest
-
Hi there !
I am having issues with Google Ads conversions (not getting email address for enhanced conversion).I realized that when the user is logged in, all the info comes along when the “purchase” event gets fired.
However, I did a test without signing in and I confirmed that very few values from the transaction are pushed to the datalayer. Is this behavior expected? See snippet belowe from the datalayer content. I am trying to use “customerBillingEmail” which comes empty when signed as guest.
{
event: “purchase”,
gtm: {
uniqueEventId: 31,
start: 1660151253789,
allowlist: undefined,
blocklist: undefined,
whitelist: undefined,
blacklist: undefined
},
visitorDoNotTrack: 0,
visitorLoginState: “logged-out”,
visitorType: “visitor-logged-out”,
visitorEmail: “”,
visitorEmailHash: “”,
visitorRegistrationDate: “”,
visitorUsername: “”,
visitorIP: “24.200.169.14”,
pagePostType: “page”,
pagePostType2: “single-page”,
pagePostAuthor: “comrad”,
browserName: “Chrome”,
browserVersion: “104.0.0.0”,
browserEngineName: “Blink”,
browserEngineVersion: “”,
osName: “Windows”,
osVersion: “10.0”,
deviceType: “desktop”,
deviceManufacturer: “”,
deviceModel: “”,
customerTotalOrders: 0,
customerTotalOrderValue: “0.00”,
customerFirstName: “”,
customerLastName: “”,
customerBillingFirstName: “”,
customerBillingLastName: “”,
customerBillingCompany: “”,
customerBillingAddress1: “”,
customerBillingAddress2: “”,
customerBillingCity: “”,
customerBillingPostcode: “”,
customerBillingCountry: “”,
customerBillingEmail: “”,
customerBillingEmailHash: “rewerbrbrrtrt996fb92427ae41e4” +
“649b934ca495991b7852b855”,
customerBillingPhone: “”,
customerShippingFirstName: “”,
customerShippingLastName: “”,
customerShippingCompany: “”,
customerShippingAddress1: “”,
customerShippingAddress2: “”,
customerShippingCity: “”,
customerShippingPostcode: “”,
customerShippingCountry: “”,
cartContent: {
totals: {
applied_coupons: [],
discount_total: 0,
subtotal: 0,
total: 0
},
items: []
},
orderData: {
attributes: {
date: “2022-08-10T13:07:24+00:00”,
order_number: “38426”,
order_key: “wc_order_r7lWpdf8eQCgAh”,
payment_method: “stripe”,
payment_method_title: “Credit Card (Stripe)”,
shipping_method: “Flat rate – (2 to 3 days)”,
status: “processing”,
coupons: “”
},
totals: {
currency: “USD”,
discount_total: “0”,
discount_tax: “0”,
shipping_total: “8.99”,
shipping_tax: “0”,
cart_tax: “0.94”,
total: “28.76”,
total_tax: “0.94”,
total_discount: “0”,
subtotal: “18.83”,`The page I need help with: [log in to see the link]
- The topic ‘Billing info not present in data layer when logged in as guest’ is closed to new replies.