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 Actions icon towards the middle and choose "Edit Code"

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