Sales can be tracked by Pickzen once configured. Pickzen will differentiate between direct sales and indirect sales:
Direct sales: Sales of products that have been recommended by Pickzen.
Indirect sales: Sales of products not recommended by Pickzen. This is important in Assistants that don't recommend products, for example, a Sizer. Pickzen will claim an indirect sale only if the customer previously completed an Assistant.
The Sales module is disabled by default and it is only eligible for certain accounts. Write to us to evaluate your case.
Shopify
In order to track sales from products purchased in Shopify, log into your Shopify store and go to Settings / Checkout / Order processing / Additional scripts and add the following code:
In order to track subscription sales from Recharge v1, first ensure you followed the configuration steps for Shopify. Once done, open the Recharge app in your Shopify store, and click on Checkout:
Then, add the following code to the Thank you page, replacing first the XXXXXXXX code with your userId:
<scriptasyncsrc="https://admin.pickzen.com/client/id/XXXXXXXX"></script>{% if first_time_load %}<script>function parseHtmlEntities(r){return r.replace(/&#([0-9]{1,3});/gi,function(r,t){var e=parseInt(t,10);return String.fromCharCode(e)})}var pzOrderId={{order_number}},pz_products=[];{% for item in line_items %}pz_products.push({id:"{{item.variant_id}}",gId:"{{item.product_id}}",price:{{item.price}},quantity:{{item.quantity}}});{% endfor %}var pzTimer=setInterval(function(){var r;window.pzIntegrationLoaded&&(clearInterval(pzTimer),(r=parseHtmlEntities("{{attributes.pzRechargeData}}"))&&(r=JSON.parse(r)).forEach(function(r){pzConvertionTracker.notify(pz_products,{order:pzOrderId},2,JSON.stringify(r))}))},1e3);</script>{% endif %}
Example:
You can get your userId in Integrations / Your Website / Pickzen Code
Finally, you need to add this code into Integrations / Your Website / Developers / Integration code: