Add cside with AI
Use Claude Code or another AI coding assistant to add cside to your project.
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 REPLACE_WITH_YOUR_DOMAIN with my actual domain.
Replace your domain
Check that REPLACE_WITH_YOUR_DOMAIN was swapped for your actual domain from the cside dashboard. The manual script tag method doesn’t need a 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:
- Detect your framework (Next.js, Vite, static site, Salesforce Lightning, or plain HTML)
- Install any needed packages
- Add the cside script in the right place
- Update your CSP if you have one
Visit your site, then check the cside dashboard for script traffic. You should see data within seconds.
Next steps
- Activate your domain - set up your domain in the dashboard first
- Adjust your CSP - full CSP configuration guide
- Test on staging - try it on staging before production
Was this page helpful?
Thanks for your feedback!