Post Affiliate Pro have a plugin for Shopify and a handy guide here -> https://www.postaffiliatepro.com/integration-methods/integration/shopify/
There are a few issues with their plugin though. Firstly there’s no option to include a Campaign ID, so your clicks will default back the default campaign. Not too much of a problem if you don’t have any commissions on clicks, but it is an issue if you do (and a big issue if your rates are different between campaigns).
I’ve made a feature request (this is a bug imo though) to Quality Unit Support, maybe it’ll get fixed by the time you read this.
In this case you’d have to add the click tracking script into the theme, which is a shame because Shopify does a nice job of enqueuing and running scripts asynchronously.
In terms of the sales tracking script snippet they have forgotten a couple of things;
- Remember to replace the track.js with the obfuscated version from your PAP dashboard (Tools -> Integration -> Clicks Tracking)
- There’s no Campaign ID in the Sales Tracking script either, you’ll need to add one in (see below).
I found that the code provided by Quality Unit not only had key things missing, it was full of mistakes which threw JS errors.
Here’s the one I am using instead, I got rid of all the discount stuff as it wasn’t relevant to me;