Affiliate Tracking App Embed
Sprusify uses a Shopify theme app embed extension to enable affiliate tracking without manual theme edits.
Why Use the App Embed Extension
- No direct theme code editing required.
- Works across theme updates.
- Can be enabled or disabled from Theme Customizer.
- Includes optional debug mode for troubleshooting.
Enable the Extension
- In Shopify Admin, open Online Store and then Themes.
- Select Customize on the active theme.
- Open the App embeds section.
- Find Affiliate Tracking.
- Toggle it on.
- Save changes.
Optional Debug Mode
- In Theme Customizer, click the Affiliate Tracking embed.
- Enable debug mode.
- Save.
Debug mode helps verify script load, referral capture, and cart attribute updates.
How Tracking Works
- Shopper lands with an affiliate parameter, such as ref.
- Extension records referral context in first-party cookies.
- Extension updates cart attributes with affiliate context.
- Order webhook processing reads attribution context.
- Sprusify creates conversion records and earnings states.
Validation Checklist
- Open storefront and confirm tracking script is present.
- Test a referral URL in an incognito window.
- Confirm affiliate cookie is set.
- Place a test order.
- Confirm conversion appears in Sprusify.
Common Issues
-
Embed not visible in Theme Customizer:
- Confirm extension is deployed with your app version.
- Refresh the customizer after deployment.
-
Clicks recorded but no order attribution:
- Confirm affiliate is active and mapped to an eligible program.
- Verify order includes affiliate-related cart or note attributes.
- Check webhook delivery and processing logs.
Deployment Notes
- Deploying app updates also deploys extension updates.
- If extension behavior changes, redeploy and retest with an incognito session.
Privacy Notes
- Uses first-party cookies for attribution context.
- Avoid storing sensitive personal data in tracking cookies.