Install with an AI coding agent
Copy a ready-made install prompt for Cursor, Claude Code, Codex or Lovable and let your agent add Boostra.
Updated
If you build your site with an AI coding agent, you can hand it the install instead of editing templates yourself. Boostra writes the instructions for you.
Copy the install prompt#
- Open your project's "Install tracking" step in the setup wizard, or the "Install tracking" card in "Settings".
- Click "Copy prompt". You see "Install prompt copied".
- Paste it into Cursor, Claude Code, Codex, Lovable or any other agent, and let it make the change.
- Review the diff, deploy, and check that tracking is live.
The prompt contains your exact snippet under "## Snippet", where to put it under "## Where to put it", and a short "## Rules" list. The rules tell the agent to paste the snippet unchanged, that one website id covers the site and its subdomains, and not to add the app subdomain as a second Boostra site. That keeps agents from "improving" the snippet or splitting your data.
Identify signed-in users too#
If your product has logins, the next useful step is telling Boostra who each signed-in visitor is, so funnels, profiles and revenue can follow a person across devices. The project's "Advanced" settings include an "AGENTS.md for your repo" block with "Copy AGENTS.md block": add it to your repository so every agent session knows how to call identify and reset. Boostra also publishes an agent skill with the same instructions at https://platform.getboostra.com/skill.md.
The calls themselves are documented in identify signed-in users.
Tips#
- Ask the agent to put the snippet in the shared layout or root template, not in a single page component.
- Tell it to call
window.boostra?.(...)with optional chaining, so your app keeps working when the tracker is blocked. - If the agent proposes an npm package or a wrapper library, decline: Boostra is installed with the plain snippet.
Agents can also help after an audit: see fix issues with Cursor, Claude or Codex.
Related articles
-
Install the tracking snippet
Copy your site's snippet from Boostra and paste it into the head of every page you want to measure.
Read article -
Identify signed-in users
Call identify after sign-in and reset on sign-out so visits, funnels and revenue are tied to real users.
Read article -
Fix issues with AI coding tools
Send an audit fix to Cursor, Claude or Codex as a ready-made prompt.
Read article