We have a data source called "customer_email". If the customer logs in whilst going through the checkout process, on the order confirmation page, customer_email = firstname.lastname@example.org
However, if the customer goes through the guest checkout process, customer_email = email@example.com_SPQWsa1l23szA_20140220140552
I have placed an order and used the chrome dev tools console to write the following string:
This strips off everything after _SPQ leaving me with a cleaned customer email address.
However, I can't now get it to work in tealium.
I have create a 'set data values' extension to set a new data source 'customer_email_clean' to JS Code "jQuery('utag_data.customer_email.slice(0, utag_data.customer_email.indexOf("_SPQ")')"
With a condition that customer_email is populated and the extension scoped to all tags.
However, I've published and tested and can't see the data source customer_email_clean appearing in utag_data.
I have a feeling that I've referenced "utag_data.customer_email" incorrectly - that I perhaps shouldn't mention the utag_data in this extension?
Any assistance would be gratefully received!
... View more