Passing in Custom User Data for Shopify

1

Log in to your Shopify site

2

Click on Online Store

3

Click on Themes

4

Click on the "..." icon on the top right and choose "Edit HTML/CSS"

5

Under layout select theme.liquid

6

Scroll within the page until you find the [/head] tag

7

Paste the exact code from below just before the [/head] tag

Custom User Data Javascript for Shopify

    <script>

      window.__wtw_custom_user_data = {};
      window.__wtw_custom_user_data.email = '{{customer.email}}';
      window.__wtw_custom_user_data.name = '{{customer.first_name}} {{customer.last_name}}';
    </script>

Still need help? Contact Us Contact Us