How to identify Shopify customers in ConvertFlow

If your Shopify store has customer login enabled, you can add this snippet below to your theme.liquid file. This will identify logged in customers as contacts in ConvertFlow.

{% if customer.email %}
  <script>
  window.addEventListener("cfReady", function(event) {
      convertflow.identify({
        email: '{{ customer.email }}', 
        override: true
      }); 
  });
  </script>
{% endif %}