Skip to content

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).

ParameterPurposeSticky for the session?
?bsc=<slug>Test / QA. Force a segment for this page view only (legacy alias: ?bsr-color=<slug>).No
?bsc=allTest / 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=1Debug. Skip caches and log the resolved color/postcode.n/a
https://your-site.nl/product/example?bsc=blauw
https://your-site.nl/product/example?bsc=all

Renders 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.

https://your-site.nl/?bsr-type=bsr4&bsr-segment=rood

This 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).

When several signals are present, the widget resolves the segment in this order:

  1. ?bsc (or ?bsr-color) test override (one-shot)
  2. ?bsr-type + ?bsr-segment ad params (sticky)
  3. Cached segment from earlier this session
  4. A fresh server lookup (IP → postcode → segment)

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.