Conversation
…onversion fails Send the captured click id (`awc`) as `cks` on the `sread.img` fallback pixel, so a sale that misses the S2S call is still attributed deterministically instead of relying on Awin third-party cookies. Awin confirmed `sread.img` accepts `cks` the same way `sread.php` does. Add an opt-in test session, marked with `?awin_testmode=1` and kept on sessionStorage: the pixel then fires with `testmode=1` and the server skips the S2S conversion, which has no test flag on the REST API and would otherwise register a real order. On such a session the pixel always fires, as it becomes the only tracking channel. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Awin homologation for Tia Sônia (advertiser 128977) is blocked on the fallback pixel. The S2S conversion is validated and working, but Awin won't launch with S2S only: the
sread.imgfallback fires without the click id today, so if the S2S call ever misses, attribution falls back to Awin's third-party cookies, which browsers increasingly block. Awin confirmedsread.imgacceptscksthe same waysread.phpdoes and asked for atestmode=1firing to validate.What
ckson the fallback pixel (vbeta-app.ts): theawccaptured on the click landing is now sent ascks, so the fallback attributes the sale deterministically without depending on cookies.?awin_testmode=1(set-tracking-ids.ts): kept onsessionStorage, flows to/_analyticswith the other tracking ids. On such a session:testmode=1;Nothing here is temporary. The test flag is scoped to one browser session and is meant to be reused on any future Awin validation without touching code.
Verification
no-consolewarnings invbeta-app.tsare pre-existing).tsc --noEmitonpackages/storefrontandpackages/ssr: no errors on the changed files (remaining output is the usualimport.meta.env/ alias noise outside Astro).emitAwinFallbackPixelisn't exported. Can be covered in a follow-up by extracting the URL builder.Rollout
@cloudcommerce/*ontiasonia/functions/ssr→ deploy.&awin_testmode=1, place an order, confirm on DevTools thatsread.imgcarriescksandtestmode=1.🤖 Generated with Claude Code