AI setup
Install and set up Contentsquare in your project with your AI coding agent.
Install Contentsquare with an AI coding agent using a single terminal command, a marketplace plugin, a downloadable skill, or a copy-paste prompt.
Key concepts
Section titled Key concepts- Wizard: A command-line tool you run with
npx. It adds the Contentsquare skill to your project and copies an install prompt to your clipboard. Recommended for most projects. - Agent plugins: Packages that deliver the Contentsquare skills through the marketplace of GitHub Copilot CLI, Claude Code, or Cursor.
- Agent Skills: Instructions that teach your AI coding agent how to install and configure a Contentsquare SDK or the tracking tag. Add them to any other compatible agent with the
skillsCLI. - Prompts: Paste a single prompt. Your agent downloads the skill and follows it. Then use more prompts to go further.
Wizard
Section titled WizardThe fastest way to install Contentsquare: one command gets your project and your AI coding agent ready, and your agent does the rest. Requires Node.js 20 or later.
-
In your project directory, run the wizard.
npx @contentsquare/wizard install --stack web --tag-id {{YOUR_TAG_ID}}npx @contentsquare/wizard install --stack androidnpx @contentsquare/wizard install --stack iosnpx @contentsquare/wizard install --stack react-nativenpx @contentsquare/wizard install --stack flutter -
In your AI coding agent, paste the prompt the wizard copied to your clipboard, followed by your request:
Add Contentsquare to my website using tag ID {{YOUR_TAG_ID}}.Install Contentsquare Experience Analytics for Android. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for Android with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for Android with data source ID {{YOUR_DATASOURCE_ID}}.Install Contentsquare Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for iOS with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for iOS with data source ID {{YOUR_DATASOURCE_ID}}.Install Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for React Native with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for React Native with data source ID {{YOUR_DATASOURCE_ID}}.Install Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for Flutter with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for Flutter with data source ID {{YOUR_DATASOURCE_ID}}.
Agent plugins
Section titled Agent pluginsUse this method if your AI coding agent is GitHub Copilot CLI, Claude Code, or Cursor: Contentsquare publishes a plugin to each of their marketplaces.
-
Install the Contentsquare plugin for your AI coding agent.
copilot plugin marketplace add ContentSquare/agentscopilot plugin install contentsquare-web@contentsquarecopilot plugin marketplace add ContentSquare/agentscopilot plugin install contentsquare-android@contentsquarecopilot plugin marketplace add ContentSquare/agentscopilot plugin install contentsquare-ios@contentsquarecopilot plugin marketplace add ContentSquare/agentscopilot plugin install contentsquare-reactnative@contentsquarecopilot plugin marketplace add ContentSquare/agentscopilot plugin install contentsquare-flutter@contentsquare/plugin marketplace add ContentSquare/agents/plugin install contentsquare-web@contentsquare/plugin marketplace add ContentSquare/agents/plugin install contentsquare-android@contentsquare/plugin marketplace add ContentSquare/agents/plugin install contentsquare-ios@contentsquare/plugin marketplace add ContentSquare/agents/plugin install contentsquare-reactnative@contentsquare/plugin marketplace add ContentSquare/agents/plugin install contentsquare-flutter@contentsquareInstall the
contentsquare-webplugin from the Cursor marketplace, or add the Contentsquare agents repository directly. Cursor reads the.cursor-plugincatalog in the repository.Install the
contentsquare-androidplugin from the Cursor marketplace, or add the Contentsquare agents repository directly. Cursor reads the.cursor-plugincatalog in the repository.Install the
contentsquare-iosplugin from the Cursor marketplace, or add the Contentsquare agents repository directly. Cursor reads the.cursor-plugincatalog in the repository.Install the
contentsquare-reactnativeplugin from the Cursor marketplace, or add the Contentsquare agents repository directly. Cursor reads the.cursor-plugincatalog in the repository.Install the
contentsquare-flutterplugin from the Cursor marketplace, or add the Contentsquare agents repository directly. Cursor reads the.cursor-plugincatalog in the repository. -
Switch to your AI coding agent and paste this prompt:
Add Contentsquare to my website using tag ID {{YOUR_TAG_ID}}.Install Contentsquare Experience Analytics for Android. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for Android with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for Android with data source ID {{YOUR_DATASOURCE_ID}}.Install Contentsquare Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for iOS with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for iOS with data source ID {{YOUR_DATASOURCE_ID}}.Install Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for React Native with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for React Native with data source ID {{YOUR_DATASOURCE_ID}}.Install Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for Flutter with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for Flutter with data source ID {{YOUR_DATASOURCE_ID}}.
Agent Skills
Section titled Agent SkillsFor AI coding agents without a Contentsquare plugin, add the skill directly to your project.
-
In your project directory, add the Contentsquare skill with the
skillsCLI, or copy it from the Contentsquare agents repository ↗.npx skills add contentsquare/agents --skill contentsquare-web-tag-installnpx skills add contentsquare/agents --skill contentsquare-android-sdknpx skills add contentsquare/agents --skill contentsquare-ios-sdknpx skills add contentsquare/agents --skill contentsquare-react-native-sdknpx skills add contentsquare/agents --skill contentsquare-flutter-sdkIf you copy the skill instead, place it in the location your agent scans for skills:
AI coding agent Skill location GitHub Copilot .github/skills/or.agents/skills/Cursor .cursor/rules/or the project rootClaude Code .claude/skills/or the project rootOther compatible agents .agents/skills/ -
Switch to your AI coding agent and paste this prompt:
Add Contentsquare to my website using tag ID {{YOUR_TAG_ID}}.Install Contentsquare Experience Analytics for Android. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for Android with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for Android with data source ID {{YOUR_DATASOURCE_ID}}.Install Contentsquare Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for iOS with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for iOS with data source ID {{YOUR_DATASOURCE_ID}}.Install Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for React Native with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for React Native with data source ID {{YOUR_DATASOURCE_ID}}.Install Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.Install Contentsquare Product Analytics for Flutter with environment ID {{YOUR_ENVIRONMENT_ID}}.Install Contentsquare Experience Platform for Flutter with data source ID {{YOUR_DATASOURCE_ID}}.
Prompts
Section titled Prompts-
Switch to your AI coding agent and paste this prompt:
Add Contentsquare to my website using tag ID {{YOUR_TAG_ID}}.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-web-tag-install/SKILL.mdInstall Contentsquare Experience Analytics for Android. Add the SDK, start it, handle user consent, and track screens.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-android-sdk/SKILL.mdInstall Contentsquare Product Analytics for Android with environment ID {{YOUR_ENVIRONMENT_ID}}.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-android-sdk/SKILL.mdInstall Contentsquare Experience Platform for Android with data source ID {{YOUR_DATASOURCE_ID}}.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-android-sdk/SKILL.mdInstall Contentsquare Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-ios-sdk/SKILL.mdInstall Contentsquare Product Analytics for iOS with environment ID {{YOUR_ENVIRONMENT_ID}}.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-ios-sdk/SKILL.mdInstall Contentsquare Experience Platform for iOS with data source ID {{YOUR_DATASOURCE_ID}}.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-ios-sdk/SKILL.mdInstall Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-reactnative-sdk/SKILL.mdInstall Contentsquare Product Analytics for React Native with environment ID {{YOUR_ENVIRONMENT_ID}}.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-reactnative-sdk/SKILL.mdInstall Contentsquare Experience Platform for React Native with data source ID {{YOUR_DATASOURCE_ID}}.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-reactnative-sdk/SKILL.mdInstall Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-flutter-sdk/SKILL.mdInstall Contentsquare Product Analytics for Flutter with environment ID {{YOUR_ENVIRONMENT_ID}}.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-flutter-sdk/SKILL.mdInstall Contentsquare Experience Platform for Flutter with data source ID {{YOUR_DATASOURCE_ID}}.Use curl to download, read, and follow: https://raw.githubusercontent.com/ContentSquare/agents/main/skills/contentsquare-flutter-sdk/SKILL.md -
To check the tag again later, use this prompt.
Verify that Contentsquare is working on my website.Once Contentsquare is installed, use one of these prompts or write your own.
Track screen views in my Android app.Mask sensitive data in Session Replay for my Android app.Track purchases as transactions in my Android app.Enable autocapture for my Android app.Identify users in my Android app with the CSQ SDK.Add properties to every event in my Android app.Verify my CSQ Experience Platform integration in my Android app.Once Contentsquare is installed, use one of these prompts or write your own.
Track screen views in my iOS app.Mask sensitive data in Session Replay for my iOS app.Set up WebView tracking in my iOS app.Track purchases as transactions in my iOS app.Enable autocapture for my iOS app.Identify users in my iOS app with the CSQ SDK.Add properties to every event in my iOS app.Verify my CSQ Experience Platform integration in my iOS app.Once Contentsquare is installed, use one of these prompts or write your own.
Track screen views in my React Native app.Mask sensitive data in Session Replay for my React Native app.Set up WebView tracking in my React Native app.Track purchases as transactions in my React Native app.Enable autocapture for my React Native app.Identify users in my React Native app with the CSQ SDK.Add properties to every event in my React Native app.Verify my CSQ Experience Platform integration in my React Native app.Once Contentsquare is installed, use one of these prompts or write your own.
Track screen views in my Flutter app.Mask sensitive data in Session Replay for my Flutter app.Set up WebView tracking in my Flutter app.Track purchases as transactions in my Flutter app.Enable autocapture for my Flutter app.Identify users in my Flutter app with the CSQ SDK.Add properties to every event in my Flutter app.Verify my CSQ Experience Platform integration in my Flutter app.