Skip to content

Pass UTM params through to dashboard sign-up - #706

Open
goosewin wants to merge 2 commits into
mainfrom
feature/utm-passthrough-dashboard-bde56f
Open

goosewin wants to merge 2 commits into
mainfrom
feature/utm-passthrough-dashboard-bde56f

Conversation

@goosewin

@goosewin goosewin commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Adds utm.js, which saves first-touch UTM params to the kernel_utm cookie and appends them to dashboard.onkernel.com links on click. Launch posts link straight to docs pages, so the params were lost before sign-up.

To test, open /browsers/code-mode-webmcp?utm_source=x&utm_medium=social&utm_campaign=code-mode and click Sign up: the params are on the URL. Without params, links are unchanged.

Pairs with the UTM passthrough in kernel/website, which writes the same cookie.


Note

Low Risk
Client-side marketing attribution only; sets a first-party cookie and rewrites outbound dashboard URLs with no server or auth impact.

Overview
Adds utm.js to the Mintlify docs so launch traffic that lands on docs with UTM query params still reaches dashboard sign-up with attribution.

On load, the script captures first-touch utm_* values into the shared kernel_utm cookie (30-day, kernel.sh domain when applicable, host-only for local preview). It does not overwrite an existing cookie, matching the website behavior.

On click and middle-click (capture phase), it rewrites links to dashboard.onkernel.com to append stored UTMs when the destination URL does not already include utm_ params.

Reviewed by Cursor Bugbot for commit 577769f. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Kernel 🟢 Ready View Preview Oct 18, 2026, 8:20 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@mintlify

mintlify Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Kernel 🟡 Building – Oct 15, 2026, 6:02 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 577769f. Configure here.

Comment thread utm.js
"=" +
encodeURIComponent(JSON.stringify(utm)) +
cookieAttributes();
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attribution cookie ignores tracking preferences

Medium Severity

kernel_utm is a 30-day attribution cookie written and later appended to dashboard links without checking Do Not Track or c15t marketing consent. conceptual.js already gates the dashboard attribution handoff on those signals, and the privacy policy says advertising and attribution cookies honor DNT.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 577769f. Configure here.

This branch was successfully deployed

1 active deployment
staging — 577769fa Deployed Oct 18, 2026 by mintlify[bot]
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