Skip to content

Docs: make data-switchboard-consent="granted" the default embed snippet - #20

Merged
Preetish merged 1 commit into
mainfrom
attribution
Oct 11, 2026
Merged

Preetish merged 1 commit into
mainfrom
attribution

Conversation

@Preetish

Copy link
Copy Markdown
Owner

The embed guide, the admin Setup page's copied snippet, and the example host page now include the attribute, so first touch and cookie IDs are captured out of the box. The guide explains when to remove it (sites that need a consent banner call Switchboard.setConsent instead) and to load the script on every page so landing-page campaigns are kept. The loader's own default is unchanged.

What and why

How it was tested

Checklist

  • Tests cover the change (Postgres tests for constraints, transactions, or concurrency)
  • Docs updated (README, docs/, or .env.example) if behavior or config changed
  • CHANGELOG.md "Unreleased" updated for user-facing changes
  • UI changes follow docs/design.md and work in both themes and on mobile

The embed guide, the admin Setup page's copied snippet, and the example host
page now include the attribute, so first touch and cookie IDs are captured
out of the box. The guide explains when to remove it (sites that need a
consent banner call Switchboard.setConsent instead) and to load the script
on every page so landing-page campaigns are kept. The loader's own default
is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Preetish
Preetish merged commit 9ad6c87 into main Oct 11, 2026
3 checks passed
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