<!-- theme.liquid - Add this script at the end of theme.liquid file -->
<script type="text/javascript" src="https://static.growlytics.in/growlytics.min.js"></script>
page: '{{request.page_type}}',
product: window.GrowlyticsInfo ? window.GrowlyticsInfo.shopifyProduct: null,
collection: window.GrowlyticsInfo ? window.GrowlyticsInfo.shopifyCollection: null,
'name': '{{ customer.name }}' ? '{{customer.name}}' : null,
'email': '{{ customer.email }}' ? '{{customer.email}}' : null,
'mobile': '{{ customer.phone }}' ? '{{customer.phone}}' : null,
'firstName': '{{ customer.first_name }}' ? '{{customer.first_name}}' : null,
'lastName': '{{ customer.last_name }}' ? '{{customer.last_name}}' : null,
'totalOrders': {{ customer.orders_count }},
'lastOrder': '{{ customer.last_order }}' ? '{{ customer.last_order }}' : null,
'totalSpent': {{customer.total_spent }},
'addressList': {{customer.addresses | json}}
Growlytics.shopify.sync(grwSyncInfo);
shopifyStore: '<store-name-goes-here>',
webPushEnabled: true, // Enable/disable push notifs
serviceWorkerFile: '<service-worker-file-location-goes-here>',
autoRequestWebPushPermission: true