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>
  var customData = {
    'name' : '{{customer.first_name}} {{customer.last_name}}',
    'email' : '{{customer.email}}',
  }

  window._loq = window._loq || []    
  window._loq.push(['custom', customData])
</script>

    Still need help? Contact Us Contact Us