---
title: AI setup
description: Install and set up Contentsquare from your AI coding agent, with the Contentsquare wizard and downloadable agent skills
source_url:
  html: https://docs.contentsquare.com/en/ai-setup/
  md: https://docs.contentsquare.com/en/ai-setup/index.md
---

> ## Documentation index
> Fetch the complete documentation index at: https://docs.contentsquare.com/llms.txt
> Use this file to discover all available pages before exploring further.

Install Contentsquare with an AI coding agent using a single terminal command, a marketplace plugin, a downloadable skill, or a copy-paste prompt.

> **Disclaimer**
>
> The Contentsquare skills guide your AI coding agent through installing and setting up our SDKs and tracking tag. Your agent runs with your own settings and permissions, so review its changes before you commit them. Contentsquare is not responsible for how your agent interprets or applies these instructions.

## Key concepts

* **[Wizard](https://docs.contentsquare.com/en/ai-setup/#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](https://docs.contentsquare.com/en/ai-setup/#agent-plugins)**: Packages that deliver the Contentsquare skills through the marketplace of GitHub Copilot CLI, Claude Code, or Cursor.
* **[Agent Skills](https://docs.contentsquare.com/en/ai-setup/#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](https://docs.contentsquare.com/en/ai-setup/#prompts)**: Paste a single prompt. Your agent downloads the skill and follows it. Then use more prompts to go further.

## Wizard

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.

   * Web

     ```shell
     npx @contentsquare/wizard install --stack web --tag-id {{YOUR_TAG_ID}}
     ```

   * Android

     ```shell
     npx @contentsquare/wizard install --stack android
     ```

   * iOS

     ```shell
     npx @contentsquare/wizard install --stack ios
     ```

   * React Native

     ```shell
     npx @contentsquare/wizard install --stack react-native
     ```

   * Flutter

     ```shell
     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:

   * Web

     ```text
     Add Contentsquare to my website using tag ID {{YOUR_TAG_ID}}.
     ```

   * Android

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for Android. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for Android with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for Android with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

   * iOS

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for iOS with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for iOS with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

   * React Native

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for React Native with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for React Native with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

   * Flutter

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for Flutter with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for Flutter with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

## Agent plugins

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 CLI

     * Web

       ```shell
       copilot plugin marketplace add ContentSquare/agents
       copilot plugin install contentsquare-web@contentsquare
       ```

     * Android

       ```shell
       copilot plugin marketplace add ContentSquare/agents
       copilot plugin install contentsquare-android@contentsquare
       ```

     * iOS

       ```shell
       copilot plugin marketplace add ContentSquare/agents
       copilot plugin install contentsquare-ios@contentsquare
       ```

     * React Native

       ```shell
       copilot plugin marketplace add ContentSquare/agents
       copilot plugin install contentsquare-reactnative@contentsquare
       ```

     * Flutter

       ```shell
       copilot plugin marketplace add ContentSquare/agents
       copilot plugin install contentsquare-flutter@contentsquare
       ```

   * Claude Code

     * Web

       ```text
       /plugin marketplace add ContentSquare/agents
       /plugin install contentsquare-web@contentsquare
       ```

     * Android

       ```text
       /plugin marketplace add ContentSquare/agents
       /plugin install contentsquare-android@contentsquare
       ```

     * iOS

       ```text
       /plugin marketplace add ContentSquare/agents
       /plugin install contentsquare-ios@contentsquare
       ```

     * React Native

       ```text
       /plugin marketplace add ContentSquare/agents
       /plugin install contentsquare-reactnative@contentsquare
       ```

     * Flutter

       ```text
       /plugin marketplace add ContentSquare/agents
       /plugin install contentsquare-flutter@contentsquare
       ```

   * Cursor

     * Web

       Install the `contentsquare-web` plugin from the [Cursor marketplace](https://cursor.com/marketplace), or add the [Contentsquare agents repository](https://github.com/ContentSquare/agents) directly. Cursor reads the `.cursor-plugin` catalog in the repository.

     * Android

       Install the `contentsquare-android` plugin from the [Cursor marketplace](https://cursor.com/marketplace), or add the [Contentsquare agents repository](https://github.com/ContentSquare/agents) directly. Cursor reads the `.cursor-plugin` catalog in the repository.

     * iOS

       Install the `contentsquare-ios` plugin from the [Cursor marketplace](https://cursor.com/marketplace), or add the [Contentsquare agents repository](https://github.com/ContentSquare/agents) directly. Cursor reads the `.cursor-plugin` catalog in the repository.

     * React Native

       Install the `contentsquare-reactnative` plugin from the [Cursor marketplace](https://cursor.com/marketplace), or add the [Contentsquare agents repository](https://github.com/ContentSquare/agents) directly. Cursor reads the `.cursor-plugin` catalog in the repository.

     * Flutter

       Install the `contentsquare-flutter` plugin from the [Cursor marketplace](https://cursor.com/marketplace), or add the [Contentsquare agents repository](https://github.com/ContentSquare/agents) directly. Cursor reads the `.cursor-plugin` catalog in the repository.

2. Switch to your AI coding agent and paste this prompt:

   * Web

     ```text
     Add Contentsquare to my website using tag ID {{YOUR_TAG_ID}}.
     ```

   * Android

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for Android. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for Android with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for Android with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

   * iOS

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for iOS with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for iOS with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

   * React Native

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for React Native with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for React Native with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

   * Flutter

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for Flutter with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for Flutter with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

## Agent Skills

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 ↗](https://github.com/ContentSquare/agents).

   * Web

     ```shell
     npx skills add contentsquare/agents --skill contentsquare-web-tag-install
     ```

   * Android

     ```shell
     npx skills add contentsquare/agents --skill contentsquare-android-sdk
     ```

   * iOS

     ```shell
     npx skills add contentsquare/agents --skill contentsquare-ios-sdk
     ```

   * React Native

     ```shell
     npx skills add contentsquare/agents --skill contentsquare-react-native-sdk
     ```

   * Flutter

     ```shell
     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 agent | Skill 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:

   * Web

     ```text
     Add Contentsquare to my website using tag ID {{YOUR_TAG_ID}}.
     ```

   * Android

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for Android. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for Android with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for Android with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

   * iOS

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for iOS. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for iOS with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for iOS with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

   * React Native

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for React Native. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for React Native with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for React Native with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

   * Flutter

     * Experience Analytics

       ```text
       Install Contentsquare Experience Analytics for Flutter. Add the SDK, start it, handle user consent, and track screens.
       ```

     * Product Analytics

       ```text
       Install Contentsquare Product Analytics for Flutter with environment ID {{YOUR_ENVIRONMENT_ID}}.
       ```

     * Experience Platform

       ```text
       Install Contentsquare Experience Platform for Flutter with data source ID {{YOUR_DATASOURCE_ID}}.
       ```

## Prompts

1. Switch to your AI coding agent and paste this prompt:

   * Web

     ```text
     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
     ```

   * Android

     * Experience Analytics

       ```text
       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
       ```

     * Product Analytics

       ```text
       Install 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.md
       ```

     * Experience Platform

       ```text
       Install 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.md
       ```

   * iOS

     * Experience Analytics

       ```text
       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
       ```

     * Product Analytics

       ```text
       Install 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.md
       ```

     * Experience Platform

       ```text
       Install 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.md
       ```

   * React Native

     * Experience Analytics

       ```text
       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
       ```

     * Product Analytics

       ```text
       Install 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.md
       ```

     * Experience Platform

       ```text
       Install 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.md
       ```

   * Flutter

     * Experience Analytics

       ```text
       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
       ```

     * Product Analytics

       ```text
       Install 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.md
       ```

     * Experience Platform

       ```text
       Install 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
       ```

2. * Web

     To check the tag again later, use this prompt.

     ```text
     Verify that Contentsquare is working on my website.
     ```

   * Android

     Once Contentsquare is installed, use one of these prompts or write your own.

     * Experience Analytics

       ```text
       Track screen views in my Android app.
       ```

       ```text
       Mask sensitive data in Session Replay for my Android app.
       ```

       ```text
       Track purchases as transactions in my Android app.
       ```

     * Product Analytics

       ```text
       Enable autocapture for my Android app.
       ```

       ```text
       Identify users in my Android app with the CSQ SDK.
       ```

       ```text
       Add properties to every event in my Android app.
       ```

     * Experience Platform

       ```text
       Verify my CSQ Experience Platform integration in my Android app.
       ```

   * iOS

     Once Contentsquare is installed, use one of these prompts or write your own.

     * Experience Analytics

       ```text
       Track screen views in my iOS app.
       ```

       ```text
       Mask sensitive data in Session Replay for my iOS app.
       ```

       ```text
       Set up WebView tracking in my iOS app.
       ```

       ```text
       Track purchases as transactions in my iOS app.
       ```

     * Product Analytics

       ```text
       Enable autocapture for my iOS app.
       ```

       ```text
       Identify users in my iOS app with the CSQ SDK.
       ```

       ```text
       Add properties to every event in my iOS app.
       ```

     * Experience Platform

       ```text
       Verify my CSQ Experience Platform integration in my iOS app.
       ```

   * React Native

     Once Contentsquare is installed, use one of these prompts or write your own.

     * Experience Analytics

       ```text
       Track screen views in my React Native app.
       ```

       ```text
       Mask sensitive data in Session Replay for my React Native app.
       ```

       ```text
       Set up WebView tracking in my React Native app.
       ```

       ```text
       Track purchases as transactions in my React Native app.
       ```

     * Product Analytics

       ```text
       Enable autocapture for my React Native app.
       ```

       ```text
       Identify users in my React Native app with the CSQ SDK.
       ```

       ```text
       Add properties to every event in my React Native app.
       ```

     * Experience Platform

       ```text
       Verify my CSQ Experience Platform integration in my React Native app.
       ```

   * Flutter

     Once Contentsquare is installed, use one of these prompts or write your own.

     * Experience Analytics

       ```text
       Track screen views in my Flutter app.
       ```

       ```text
       Mask sensitive data in Session Replay for my Flutter app.
       ```

       ```text
       Set up WebView tracking in my Flutter app.
       ```

       ```text
       Track purchases as transactions in my Flutter app.
       ```

     * Product Analytics

       ```text
       Enable autocapture for my Flutter app.
       ```

       ```text
       Identify users in my Flutter app with the CSQ SDK.
       ```

       ```text
       Add properties to every event in my Flutter app.
       ```

     * Experience Platform

       ```text
       Verify my CSQ Experience Platform integration in my Flutter app.
       ```

```json
{"@context":"https://schema.org","@type":"TechArticle","headline":"AI setup","description":"Install and set up Contentsquare from your AI coding agent, with the Contentsquare wizard and downloadable agent skills","url":"https://docs.contentsquare.com/en/ai-setup/","inLanguage":"en","dateModified":"2026-12-01T17:52:33+01:00","publisher":{"@type":"Organization","name":"Contentsquare","url":"https://www.contentsquare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://docs.contentsquare.com/#website","name":"Contentsquare Technical Documentation","url":"https://docs.contentsquare.com/"}}
```