Home Integration Methods Shopify

Shopify

To integrate your Shopify store, you can use the official application: https://apps.shopify.com/post-affiliate-pro-professional-tracking


If, for some reason, you cannot use the module and you want to integrate your Shopify site manually, you can use the following steps.
1
Login and navigation
Login to your admin panel. Navigate to Settings> Checkout and scroll down to Additional Content & Scripts in the section Order processing.
2
Code
The sale tracking code to track one commission per order is this:
And now just save it and you are ready to track the sales now.

If you would want to use also Lifetime Commissions plugin you need to add the following line to right under sale.setProductID('{{product_ids}}'); to add the customer's email address to the order:
sale.setData1(Shopify.checkout.email);

Or you can use customer ID instead of email, to keep it private:
sale.setData1(Shopify.checkout.customer_id);
3
Per product integration
In case you want to track per product commissions, you should use this integration code instead of the one from step 2.
You are done, this is all needed. Save your changes and you are ready to use the integration.

If you would want to use also Lifetime Commissions plugin you need to add the following line to right under sale{{forloop.index}}.setCoupon(discount); to add the customer's email address to the order.

sale{{forloop.index}}.setData1(Shopify.checkout.email);
Additional info can be found here:

Do not forget to integrate your shop with the click tracking code.
You can insert it into the theme of your store this way: 
Online store> Themes> Customize theme (top right corner)> Theme option (top left corner)> Edit HTML/CSS
In 'Layout' directory, there is a file called 'theme/liquid'. Insert the click tracking code right above </BODY> tag in that file and save it.