Skip to content

docs(web): website attribution windows (LIN-4267) - #364

Merged
samiksha-shreya merged 2 commits into
mainfrom
samiksha/lin4267-web-attribution-docs
Nov 30, 2026
Merged

samiksha-shreya merged 2 commits into
mainfrom
samiksha/lin4267-web-attribution-docs

Conversation

@samiksha-shreya

Copy link
Copy Markdown
Contributor

The app side has features/attribution-windows. The website side had nothing, so a website customer has no page for the setting LIN-4267 adds. This is that page.

⚠️ Do not merge until LIN-4267 is live

Merging publishes. The feature is still in review across three PRs, so this documents behaviour customers do not have yet:

  1. linkrunner-backend#1743, the ClickHouse table and its ALTER DELETE grant, applied on the web-analytics node
  2. linkrunner-backend#1572, the editing API and the consumer's reader
  3. linkrunner-dashboard#951, the App | Web switch on the settings page

AGENTS.md is explicit that local branch code does not prove deployed behaviour, which is exactly this situation, so the gate is stated here rather than assumed.

Written from the implementation, not mirrored from the app page

Almost every number differs, and copying the app page would have been wrong in six places:

App Website
Applies to every install conversions the customer's backend sends
Range 1 to 30 days 1 to 90 days
Default 30 (Google, Meta), 7 (everything else) 90 for every channel
Why that ceiling clicks are retained 30 days product choice; web_events has no TTL
Unmatched conversion organic Direct
Change takes effect within a minute up to 5 minutes
View-through yes, per affiliate partner not available

The two that took reading the code rather than the constants:

Scope. The window applies only to server-sent conversions. consumers/web-collect/processor.ts loads the windows inside its if (serverIndexes.length > 0) branch, so browser SDK events are never windowed: they already carry the visit's channel, UTMs and click IDs, so there is nothing to look back for. @ChetanBhosale raised this on the dashboard PR and was right; the page now says it in the second section, because it changes who the setting affects.

Timing. The app page says a change applies within a minute. The website path caches each project's windows for 5 minutes and nothing invalidates it on save, so the honest number is 5. Copying the app sentence would have promised something the consumer does not do.

The default being equal to the ceiling is also called out, since it is the reason nothing about an existing project's reporting changes until someone shortens a window.

No screenshots

The Web tab is not deployed, and the repo rules forbid fabricating a screenshot of an unavailable UI. The app page's two images stay as they are. Worth a follow-up once the dashboard PR is live, to add the Web tab and its day selector.

Also in this PR

  • The app page gains one line in What this does not cover pointing here, so the two are reachable from each other.
  • Registered in .vitepress/relay-nav.ts (the Web attribution group, beside the other web guides) and in .vitepress/nav.json, including the tab's activeMatch.

Checks

bun run check and bun run build:relay both pass: 136 pages follow the page rules, all legacy URLs and anchors resolve, agent files and sitemap regenerate.

The app side has features/attribution-windows; the website side had nothing, so
a website customer had no page for the setting LIN-4267 adds.

Written from the implementation rather than by mirroring the app page, because
almost every number differs:

- it applies to conversions a customer's BACKEND sends, through capture-event and
  capture-payment with a web source. Browser SDK events already carry the visit's
  channel, UTMs and click ids, so they are never windowed. The consumer only loads
  the windows inside its server-rows branch, which is what makes the scope real
  rather than assumed;
- 1 to 90 days, default 90, and the default equals the ceiling on purpose, so
  nothing changes for an existing project until someone shortens a window;
- the 90 is a product ceiling, not an imposed one: website attribution reaches
  back 90 days and web_events carries no TTL, unlike the app's 30 day click
  retention. The page says which reason belongs to which side;
- an unmatched conversion is credited to Direct, not organic;
- a change takes up to 5 minutes, not the app's minute, because the website path
  caches each project's windows for that long and nothing invalidates it on save;
- view-through is app only.

No screenshots: the Web tab is not deployed yet, and the repo rules forbid
fabricating a screenshot of an unavailable UI. Worth adding once it ships.

The app page gains a line pointing here, so the two are reachable from each
other. Registered in relay-nav.ts and nav.json, including the tab's activeMatch.
bun run check and bun run build:relay both pass; 136 pages, all links resolve.
…attribution-docs

# Conflicts:
#	.vitepress/nav.json
#	.vitepress/relay-nav.ts
@samiksha-shreya
samiksha-shreya merged commit 93e5a86 into main Nov 30, 2026
5 checks passed
@samiksha-shreya
samiksha-shreya deleted the samiksha/lin4267-web-attribution-docs branch November 30, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant