---
title: From the Contentsquare tag to CSQ Experience Platform - Web
description: Migrate a website that runs the Contentsquare tag for Experience Analytics to CSQ Experience Platform
source_url:
  html: https://docs.contentsquare.com/fr/web/migrate-to-csq-xp/from-contentsquare-tag/
  md: https://docs.contentsquare.com/fr/web/migrate-to-csq-xp/from-contentsquare-tag/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.

> **Note**
>
> Cette page est affichée en anglais car elle n'est pas disponible dans votre langue.

Migrate a website that runs the Contentsquare tag for Experience Analytics to CSQ Experience Platform.

Not sure this guide applies? [Identify your current tag setup](https://docs.contentsquare.com/en/web/migrate-to-csq-xp/#identify-your-current-tag-setup).

> **Already collecting Product Analytics data natively?**
>
> If your Contentsquare tag already collects Product Analytics data natively (cross-writing mode), your website is already compatible and nothing changes on your side. Contentsquare creates the Experience Platform project structure and turns on the low-latency data pipeline. Then [validate data collection](https://docs.contentsquare.com/fr/web/migrate-to-csq-xp/from-contentsquare-tag/#checklist).

## Migration steps

Contentsquare sets up your Experience Platform project and supports you through the rest of the migration.

### Update a self-hosted or SRI-pinned tag

If you load the tag from `t.contentsquare.net`, skip this step.

If your organization [self-hosts](https://docs.contentsquare.com/en/web/#self-hosting) the Contentsquare tag or uses [Subresource Integrity (SRI)](https://docs.contentsquare.com/en/web/sri/) snapshots, update to the latest tag version. Use the [Contentsquare Tracking Setup Assistant Chrome Extension ↗](https://chrome.google.com/webstore/detail/contentsquare-tracking-se/pfldcnnaiaiaogmpfdjjpdkpnigplfca) to check the version running on your website.

### Update your cookie allowlist

If your IT policy restricts the cookies stored in visitors' browsers, allow the following cookies.

| Name | Duration | Description |
| - | - | - |
| [`_cs_s_ctx`](https://docs.contentsquare.com/en/web/cookies/#_cs_s_ctx) | 30 minutes | Stores the session context data |
| [`_cs_i`](https://docs.contentsquare.com/en/web/cookies/#_cs_i) | 3 days | Stores the encryption result of the user identity string |
| [`_cs_ep`](https://docs.contentsquare.com/en/web/cookies/#_cs_ep) | 13 months | Stores the visit-level custom properties as a JSON object |
| [`_hjHasCachedUserAttributes`](https://docs.contentsquare.com/en/web/cookies/#_hjhascacheduserattributes) | Session length | Specifies whether the data in the `_hjUserAttributes` local storage item is up to date |

See [Cookies](https://docs.contentsquare.com/en/web/cookies/) for the full list.

### Update your CSP allowlist

If your IT policy enforces a Content Security Policy (CSP), allow the following directives. Add the highlighted values to your existing policy.

* US

  ```http
  Content-Security-Policy: script-src 'unsafe-inline' *.contentsquare.net app.contentsquare.com 'unsafe-eval' https://heapanalytics.com; img-src https://heapanalytics.com; connect-src *.contentsquare.net *.contentsquare.com https://heapanalytics.com; style-src app.contentsquare.com https://heapanalytics.com; font-src https://heapanalytics.com
  ```

* EU

  ```http
  Content-Security-Policy: script-src 'unsafe-inline' *.contentsquare.net app.contentsquare.com 'unsafe-eval' https://heapanalytics.com https://eu.heapanalytics.com; img-src https://heapanalytics.com https://eu.heapanalytics.com; connect-src *.contentsquare.net *.contentsquare.com https://heapanalytics.com https://eu.heapanalytics.com; style-src app.contentsquare.com https://heapanalytics.com https://eu.heapanalytics.com; font-src https://heapanalytics.com https://eu.heapanalytics.com
  ```

See [Content Security Policy](https://docs.contentsquare.com/en/web/content-security-policy/) for what each directive allows.

### Contentsquare upgrades your project

Contentsquare creates the Experience Platform project structure and upgrades your Contentsquare tag configuration. No change to your installation snippet is needed.

## Checklist

Use this checklist to make sure the migration worked.

Data flows in your Experience Analytics project.

Data flows in your [Experience Platform project ↗](https://app.contentsquare.com/#/data-feed).

```json
{"@context":"https://schema.org","@type":"TechArticle","headline":"From the Contentsquare tag to CSQ Experience Platform","description":"Migrate a website that runs the Contentsquare tag for Experience Analytics to CSQ Experience Platform","url":"https://docs.contentsquare.com/fr/web/migrate-to-csq-xp/from-contentsquare-tag/","inLanguage":"en","dateModified":"2026-12-01T14:10:13+01:00","publisher":{"@type":"Organization","name":"Contentsquare","url":"https://www.contentsquare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://docs.contentsquare.com/#website","name":"Documentation technique Contentsquare","url":"https://docs.contentsquare.com/"}}
```