• Resolved davedg629

    (@davedg629)


    I’m using GTM4WP and Woocommerce and I’m trying to setup Pinterest tracking with Enhanced Match. To do this, I need to send a hashed email to Pinterest via GTM. I’m wondering if the hashed email that the user enters into the checkout form is available in the datalayer and if so, how I can access it in GTM. Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Currently the unhashed email is available for 3rd party usage as I am not sure what hashing algorithm could be used in most cases? sha256?

    Thread Starter davedg629

    (@davedg629)

    @duracelltomi – Thanks for the reply!

    After I posted that, I realized that I don’t necessarily need to send a hashed email as Pinterest will hash the email upon receipt. Any guidance on how I can access the customer’s email address via GTM using GTM4WP?

    I ended up installed Pinterest directly on the site instead of via GTM, but I’d like to switch back to GTM if I can figure this out.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    There is a customerBillingEmail variable in the data layer for logged in users on all pages while the user is logged in
    (quick note: customer* variable will change in the future while GTM4WP is moving towards a more organized and structured data layer content)

    Additionally v1.11 will include a new feature that will push all order attributes on the order received page into a separate object that has much more data as the enhanced ecommerce object. But this will be only outputted on the order received page. Here you will be able to use the following data layer variable name to read the email address:
    orderData.customer.billing.email

    • This reply was modified 5 years, 3 months ago by Thomas Geiger.
    Thread Starter davedg629

    (@davedg629)

    @duracelltomi – Thanks so much. Looking forward to the next version.

    The one thing I’ve struggled with this plugin is figuring out the full scope of variables that is available in the data layer. What is the easiest way to see what’s available on any given page?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    I have to admit that this part of the project has some missing parts ??
    When I usually need to decide whether I should add a new feature or write some docs, I usually end up coding.

    But here you can see some of the available variables:
    https://gtm4wp.com/how-to-articles/what-is-in-the-datalayer-when-using-this-wordpress-plugin

    Thread Starter davedg629

    (@davedg629)

    This link is super helpful, thank you so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Possible to get hashed email entered in Woocommerce checkout?’ is closed to new replies.