Install the Icodrip Shopify app and configure order tracking with attribution and discount codes.
Icodrip integrates with Shopify via a custom app that you install on your store. You need a Shopify store on any paid plan — the app is not available for stores on the free trial or development plans in production mode.
You should have your Icodrip program set up before connecting Shopify. This includes your commission structure and at least one active affiliate. The Shopify integration maps Shopify orders to Icodrip conversions using cookie-based attribution or discount code tracking.
Make sure you have admin access to your Shopify store. The app installation requires permissions to read orders, customers, and products. It does not modify any of your store data.
From your Icodrip dashboard, go to Settings > Integrations and click "Connect Shopify." Enter your Shopify store URL (your-store.myshopify.com) and click "Install." You will be redirected to Shopify to authorize the app.
Shopify shows you the permissions the app is requesting. Icodrip needs read access to orders, customers, and products. After reviewing, click "Install app" to complete the installation. You will be redirected back to Icodrip with a confirmation.
The app automatically registers webhook subscriptions for orders/create, orders/updated, and refunds/create events. These webhooks trigger Icodrip's conversion tracking whenever an order is placed or modified.
Shopify orders can be attributed to affiliates in two ways: cookie-based attribution and discount code tracking. Cookie-based attribution works automatically — when a visitor arrives via an affiliate link, the tracking cookie is set, and any subsequent Shopify order is attributed to that affiliate.
For cookie-based tracking to work, you need to install the Icodrip JavaScript snippet on your Shopify theme. Go to your Shopify admin > Online Store > Themes > Edit Code, and add the snippet to the theme.liquid file just before the closing </head> tag.
Discount code tracking is an alternative that does not require cookies. Assign unique discount codes to each affiliate, and Icodrip maps orders that use those codes to the corresponding affiliate. This is especially useful for social media and podcast promotions where links may not be clicked directly.
Place a test order using Shopify's Bogus Gateway or by marking an order as paid manually. If using cookie-based attribution, first click an affiliate tracking link in the same browser where you will place the order. If using discount code tracking, apply the affiliate's discount code at checkout.
The conversion should appear in Icodrip within seconds of the order being placed. Verify that the order total, commission amount, and affiliate attribution are all correct. For orders with discounts, Icodrip calculates the commission based on the net amount after discount.
Test the refund flow as well. Refund the test order in Shopify and check that Icodrip updates the conversion status to "refunded" and adjusts the affiliate's balance accordingly.
Discount code tracking is a powerful feature for affiliates who promote through channels where links are not clickable, such as YouTube videos, podcasts, or print media. Each affiliate gets a unique discount code that they share with their audience.
To set this up, create discount codes in Shopify and then map them to affiliates in Icodrip. Go to Affiliates > select an affiliate > Discount Codes and add the Shopify discount code. You can map multiple codes to a single affiliate.
When an order comes in with a mapped discount code, Icodrip attributes the conversion to the affiliate regardless of whether a tracking cookie exists. If both a cookie and a discount code are present, the discount code takes priority since it represents a more intentional attribution.