C2S – Shopify
Discover the most-read articles
The Affilae Shopify integration relies on two installations: a tracking tag in your theme, and a custom pixel for conversions. Module 1.6 also manages the difference between new and returning customers.

Install the tracking tag in your theme
This code goes on all pages of your Shopify site.
Steps
- Go to your Shopify admin.
- Open the Online Store menu.
- Click Themes.
- Click Actions, then Edit code.
- Select the theme.liquid file.
- Add the code inside the
<body>tag.
Add the conversion pixel
Access Shopify pixels
- In the Shopify admin, open Settings.
- Click Customer events.
- Click Add custom pixel.
Configure the pixel
- Give your pixel a name, for example “Affilae Tracking”.
- Download the Affilae module v1.6.
- Delete the default text inside the pixel.
- Paste the Affilae pixel code.
Where can I find the Program ID and KEY? Affilae Admin > Configuration > Tracking tab > Integration via an Affilae plugin section.
Finalize and test
- Save the pixel.
- Connect the pixel to your store.
- Test the tracking of clicks and conversions.
Your checklist before installation
- URL format configured in Affilae: as a Parameter.
- PROGRAM_ID and conversion key retrieved.
- Module v1.6 downloaded.
Related articles
- C2S – Manual
- Testing click and conversion tracking
- Affilae tracking fundamentals
- Understanding and setting up SubIDs
- How to create and track vouchers
Frequently asked questions
Check that both codes are correctly installed, the one in the theme and the pixel. Make sure the variables are properly replaced, then test with a real order.
Verify that your store uses Checkout Extensibility. The final migration deadline was 25/08/2025. Then check that you are using the templatePixelOldNew of version 1.6.
In Affilae, open your program Configuration, then the Tracking tab. The Integration via an Affilae plugin section shows the Program ID, Rule ID, Key and Currency.
The module version documented here is 1.6. It is the one that manages differentiation between new and returning customers, through the templatePixelOldNew.
Yes. The theme code measures clicks on all pages, the custom pixel reports conversions. Without the first one, a conversion has no click to attach to.