For the complete documentation index, see llms.txt.

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.

  • 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 skills CLI.
  • Prompts: Paste a single prompt. Your agent downloads the skill and follows it. Then use more prompts to go further.

The 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.

  1. In your project directory, run the wizard.

    npx @contentsquare/wizard install --stack web --tag-id {{YOUR_TAG_ID}}
    npx @contentsquare/wizard install --stack android
    npx @contentsquare/wizard install --stack ios
    npx @contentsquare/wizard install --stack react-native
    npx @contentsquare/wizard install --stack flutter
  2. 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 Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.
    Install Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.
    Install Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.

Use this method if your AI coding agent is GitHub Copilot CLI, Claude Code, or Cursor: Contentsquare publishes a plugin to each of their marketplaces.

  1. Install the Contentsquare plugin for your AI coding agent.

    copilot plugin marketplace add ContentSquare/agents
    copilot plugin install contentsquare-web@contentsquare
    copilot plugin marketplace add ContentSquare/agents
    copilot plugin install contentsquare-android@contentsquare
    copilot plugin marketplace add ContentSquare/agents
    copilot plugin install contentsquare-ios@contentsquare
    copilot plugin marketplace add ContentSquare/agents
    copilot plugin install contentsquare-reactnative@contentsquare
    copilot plugin marketplace add ContentSquare/agents
    copilot plugin install contentsquare-flutter@contentsquare
  2. 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 Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.
    Install Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.
    Install Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.

For AI coding agents without a Contentsquare plugin, add the skill directly to your project.

  1. In your project directory, add the Contentsquare skill with the skills CLI, or copy it from the Contentsquare agents repository ↗.

    npx skills add contentsquare/agents --skill contentsquare-web-tag-install
    npx skills add contentsquare/agents --skill contentsquare-android-sdk
    npx skills add contentsquare/agents --skill contentsquare-ios-sdk
    npx skills add contentsquare/agents --skill contentsquare-react-native-sdk
    npx skills add contentsquare/agents --skill contentsquare-flutter-sdk

    If you copy the skill instead, place it in the location your agent scans for skills:

    AI coding agentSkill location
    GitHub Copilot.github/skills/ or .agents/skills/
    Cursor.cursor/rules/ or the project root
    Claude Code.claude/skills/ or the project root
    Other compatible agents.agents/skills/
  2. 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 Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.
    Install Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.
    Install Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.
  1. 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.md
    Install 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.md
    Install 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.md
    Install 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.md
    Install 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.md
  2. 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.

    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.

    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.

    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.