End-to-end checklist
- Use an isolated test store/campaign. There is no Orders API dry-run flag. Use
isSample: trueto test ingestion without commissions; a sample cannot later be converted into an earning order by replay. - Open an approved submission’s generated tracking link. Preserve
ssthrough redirects. - Before consent, confirm
getVisitorId()returnsnulland the pixel has not sent events. - Grant analytics and marketing consent. Confirm a visitor ID and successful browser requests to
/api/commerce/pixel/YOUR_PIXEL_CODE. Exercise product, cart, and checkout-start actions. - Save that visitor ID with your checkout on the server. If using a SideShift-provided account, also capture the optional advertising context.
- Verify payment through your payment system, then send the confirmed order. Check HTTP 200 and the store’s tracking diagnostics. Acceptance alone does not guarantee attribution.
- Replay the same order. Expect
duplicate: true. Send a cumulative partial refund using the original order ID, payment timestamp, and amount. Confirm the existing order updates without creating another order. - Withdraw consent. Confirm the visitor ID is cleared and no new SideShift events or retries occur.
Troubleshooting
The browser has bounded delivery retries, not guaranteed delivery. Use a durable retry queue for server orders and honor rate limits. Keep your own payment/order records as the source of truth.