Repository navigation
docs(web): website attribution windows (LIN-4267) - #364
Merged
Merged
Conversation
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
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.
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.Merging publishes. The feature is still in review across three PRs, so this documents behaviour customers do not have yet:
ALTER DELETEgrant, applied on the web-analytics nodeAGENTS.mdis 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:
web_eventshas no TTLThe two that took reading the code rather than the constants:
Scope. The window applies only to server-sent conversions.
consumers/web-collect/processor.tsloads the windows inside itsif (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
.vitepress/relay-nav.ts(the Web attribution group, beside the other web guides) and in.vitepress/nav.json, including the tab'sactiveMatch.Checks
bun run checkandbun run build:relayboth pass: 136 pages follow the page rules, all legacy URLs and anchors resolve, agent files and sitemap regenerate.