Shopify Troubleshooting
Diagnose and fix common issues with Drapier Shopify app and attribution tracking.
For installation instructions, see Install Tracking.
Verifying the script is installed
- Navigate to any page on your store.
- Open DevTools (F12) → Console.
- Type
document.cookieand look for_icg_click. - Alternatively, check the Network tab for requests to
cart/update.jscontaining_icg_click_id.
If the script is not present, go to Shopify Admin → Online Store → Themes → Customize and verify Drapier app block is enabled in your theme.
Verifying click attribution
- Append
?icg_click=test_123to any product URL on your store. - Open DevTools → Application → Cookies and confirm
_icg_clickis set totest_123. - Add the product to your cart.
- Open DevTools → Network → filter for
cart/update.jsand check the request body for_icg_click_id.
Common issues
| Issue | Cause | Fix |
|---|---|---|
| Click ID not persisted | Cookie consent banner blocking script | Ensure Drapier script is classified as "essential" or "analytics" in your cookie consent configuration |
| Cart attributes missing | Theme using custom cart (not Shopify AJAX API) | Contact support — we may need a custom integration for non-standard cart implementations |
| Script not loading | Theme app extension disabled | Go to Themes → Customize and enable Drapier app embed block |
| Attribution not matching | Multiple affiliate networks overwriting cookies | Drapier uses unique parameter and cookie names (icg_click / _icg_click) to avoid collisions |
Requirements
- Shopify-hosted store — the app uses Shopify's theme app extensions and order webhooks, which are only available on Shopify-hosted storefronts.
- Customer Privacy API — if you use Shopify's Customer Privacy banner, the attribution script respects the visitor's cookie consent preferences. Ensure your banner configuration allows the script to run for analytics purposes.