Hi,
This is a bit tricky currently as needs a custom JavaScript variable in GTM with the following content:
function() {
return {
"email": {{yourEmailVariable}},
"phone_number": {{yourPhoneVariable}},
"address": {
"first_name": {{yourFirstNameVariable}}
"last_name": {{yourLastNameVariable}},
"street": {{yourStreetAddressVariable}},
"city": {{yourCityVariable}},
"postal_code": {{yourPostalCodeVariable}},
"country": {{yourCountryVariable}}
}
}
}
Each {{yourXXX}}
is another GTM variable with the type Data Layer Variable. You can read all from the data layer using these variable names:
{{yourEmailVariable}}
– customerBillingEmailHash
{{yourPhoneVariable}}
– customerBillingPhone
{{yourFirstNameVariable}}
– customerBillingFirstName
{{yourLastNameVariable}}
– customerBillingLastName
{{yourStreetAddressVariable}}
– customerBillingAddress1
{{yourCityVariable}}
– customerBillingCity
{{yourPostalCodeVariable}}
– customerBillingPostcode
{{yourCountryVariable}}
– customerBillingCountry