URL overrides
You can override the resolved BSR segment with URL parameters, useful for QA (view the site as any segment) and for ad campaigns (land visitors in the segment your ad targeted).
Parameters
Section titled “Parameters”| Parameter | Purpose | Sticky for the session? |
|---|---|---|
?bsc=<slug> | Test / QA. Force a segment for this page view only (legacy alias: ?bsr-color=<slug>). | No |
?bsc=all | Test / QA. Force the unrecognized state (no segment) for this page view. | No |
?bsr-type=<pack>&bsr-segment=<slug> | Ad attribution. Land a visitor in a specific segment. | Yes |
?bs=1 | Debug. Skip caches and log the resolved color/postcode. | n/a |
?bsc: one-shot QA
Section titled “?bsc: one-shot QA”https://your-site.nl/product/example?bsc=blauwhttps://your-site.nl/product/example?bsc=allRenders that page as the blauw segment; ?bsc=all renders the page as if
the visitor is not recognized. It is not written to the session, so
navigating away returns you to the real segment. ?bsr-color=<slug>
keeps working as an alias.
?bsr-type + ?bsr-segment: ad attribution
Section titled “?bsr-type + ?bsr-segment: ad attribution”https://your-site.nl/?bsr-type=bsr4&bsr-segment=roodThis is the sticky form used for real campaigns. It persists for the browser
session, so the visitor keeps that segment across pages. bsr-type must match
your tenant’s current pack or the override is ignored (a safety check).
Resolution order
Section titled “Resolution order”When several signals are present, the widget resolves the segment in this order:
?bsc(or?bsr-color) test override (one-shot)?bsr-type+?bsr-segmentad params (sticky)- Cached segment from earlier this session
- A fresh server lookup (IP → postcode → segment)
Debugging with ?bs=1
Section titled “Debugging with ?bs=1”Add ?bs=1 to skip the session cache and print the resolved color, postcode, and
its source to the console. Combine it with the others to verify an override is being
applied: see Test vs. Live.