Shopify Legacy
Last updated
Last updated
<script type="application/javascript">
((e,p,t,s,n,r)=>e.grp||((s=e.grp=function(){s.process?s.process.apply(s,arguments):s.queue.push(arguments)}).queue=[],s.t=+new Date,(n=p.createElement(t)).async=1,n.src="https://storage.googleapis.com/grpixel/openpixel.min.js",(r=p.getElementsByTagName(t)[0]).parentNode.insertBefore(n,r)))(window,document,"script"),grp("init","2812");
</script><script type="application/javascript">
{% if first_time_accessed %}
((e,p,t,s,n,r)=>e.grp||((s=e.grp=function(){s.process?s.process.apply(s,arguments):s.queue.push(arguments)}).queue=[],s.t=+new Date,(n=p.createElement(t)).async=1,n.src="https://storage.googleapis.com/grpixel/openpixel.min.js",(r=p.getElementsByTagName(t)[0]).parentNode.insertBefore(n,r)))(window,document,"script"),grp("init","2812");
grp('event', 'purchase', {
orderId: '{{ order.order_number }}',
userId: '{{ customer.id }}',
userEmail: '{{ customer.email }}',
userFirstName: '{{ customer.first_name }}',
userLastName: '{{ customer.last_name }}',
tax: '{{ tax_price | times: 0.01 }}',
shipping: '{{ shipping_price | times: 0.01 }}',
products: [
{% for line_item in line_items %}{
purchaseValue: '{{ line_item.quantity | times: line_item.original_price }}',
productId: '{{ line_item.product_id }}',
productName: '{{ line_item.title }}',
productQuantity: '{{ line_item.quantity }}',
productBrand: '{{ line_item.vendor }}',
productPrice: '{{ line_item.original_price | times: 0.01 }}',
}, {% endfor %}
]
})
{% endif %}
</script>