Install in vibe-coded apps (Claude Code, Cursor, Lovable, v0)
Hand the Seena install snippet to your coding assistant and let it do the work. Detailed guide coming soon.
If you're building your product with Claude Code, Cursor, Lovable, v0, or any other AI coding assistant, installing Seena is a one-line ask.
The snippet
<script
src="https://app.seenalabs.io/widget/seena.js"
data-site-id="YOUR_SITE_ID"
async
></script>
The prompt
Paste this into your assistant, swapping in your actual site ID:
Install Seena in this project. Add this script tag to the root layout (or wherever the app's
<head>is rendered) so it loads on every page:<script src="https://app.seenalabs.io/widget/seena.js" data-site-id="YOUR_SITE_ID" async></script>Use the framework's idiomatic approach — for Next.js use the
<Script>component, for React use theindex.htmlentrypoint, for Vite useindex.html. Don't render it inside a component.
Verify
After the assistant makes the change, load the app in an incognito window and confirm the Seena is streaming data. If it doesn't, ask the assistant: "Where exactly did you place the Seena script? Show me the file and line." — most issues at this stage are just "the script ended up inside a component" or "the script loaded but the site ID is wrong."
Visitor consent
Seena works without cookies for every visitor by default. No device storage happens until a visitor opts in to enhanced analytics. The one exception is Seena's own banner, which stores only the visitor's choice. Choose where the opt-in comes from in the analytics agent's setup, under Visitor consent:
- Use my cookie banner. Seena reads Google Consent Mode v2, IAB TCF v2.2, OneTrust and Cookiebot automatically. If your app has a cookie banner of its own, or none of those four, your app calls
Seena.consent.grant()when a visitor accepts andSeena.consent.revoke()when they decline or withdraw. Both work before the script loads, when called through theSeenaReadyqueue. - Use Seena's banner. Seena shows a small banner at the bottom edge of the page. It stores only the visitor's choice. Your app can add a "Privacy" link that calls
Seena.consent.open()to let visitors change their choice. - Cookie-less only. Seena never asks and stores nothing on the device.
If your app uses its own cookie banner, add this to the prompt above:
My app has its own cookie banner. If the Seena snippet from the dashboard doesn't already have
data-seena-consent="required"on the script tag, add it. In the banner's accept handler callSeena.consent.grant(), and in its decline or withdraw handler callSeena.consent.revoke(). Call both through the queue, so they work before the script loads:window.SeenaReady = window.SeenaReady || []; window.SeenaReady.push(() => Seena.consent.grant()). If the banner can read the browser's Global Privacy Control signal (navigator.globalPrivacyControl), treat it as a decline before callinggrant().
The attribute makes Seena start without cookies and wait for your banner. It is optional, and it only makes Seena stricter, never looser. The snippet the dashboard gives you for a site on "Use my cookie banner" includes it. If you installed earlier, Seena still follows your setting without it.
Seena honours Global Privacy Control. For the four consent managers Seena reads automatically, when the browser sends it, a consent the manager stored earlier or granted by default isn't enough, and Seena waits for a fresh choice the visitor makes on that page. If you call Seena.consent.grant() yourself, Seena treats it as the visitor's choice, so your banner should apply Global Privacy Control before it calls. A visitor's earlier Allow on Seena's own banner is remembered even when the browser sends it, because it was an explicit click.
What this sidesteps
You don't need to think about which platform you're on. The framework-specific details — Next.js, HTML, React-with-Vite — are all covered by "use the idiomatic head injection for this framework." Your assistant handles it.