Skip to main content
Use an AI coding assistant to add cside
Language

Add cside with AI

Use Claude Code, Cursor, or another AI coding assistant to add cside to your project. One prompt detects your framework and wires up the script.

Use an AI coding assistant to add cside

If you use Claude Code, Cursor, or another AI coding assistant, paste the prompt below. It detects your framework, installs the right package, and adds the script.

Prompt

Copy this and paste it into your AI coding assistant:

Fetch https://docs.cside.com/ai-setup-cside.md and follow the instructions to add cside to this project. Replace [your-team-id] with my actual team ID.
Replace your team ID

Check that [your-team-id] was swapped for your actual team ID. You find it under Team Settings > General in the cside dashboard. Every method (script tag, Next.js, Vite, CLI) uses the team ID; none of them takes your domain.

This works in Claude Code, Cursor, Windsurf, GitHub Copilot, or any AI coding assistant that can fetch URLs and edit your project files.

After the prompt runs

The assistant will:

  1. Detect your framework (Next.js, Vite, static site, Salesforce Lightning, or plain HTML)
  2. Install any needed packages
  3. Add the cside script in the right place
  4. Update your CSP if you have one

Visit your site, then open Health in the cside dashboard to see script traffic. You should see data within seconds.

Next steps

Was this page helpful?