Contentsquare Experiments lets you create and run A/B tests on your website, with one or more variations. You can test changes to your pages, measure their impact, and use Contentsquare analytics to understand visitor behavior.
Prerequisites
Before you start to dive into Experiments, make sure you have the Contentsquare tracking tag implemented on the pages you want to test.
Experiments access is enabled at the project level. Contact your Contentsquare account team if Experiments is not available in the Contentsquare navigation.
Users’ rights for Experiments
User permissions are divided into three distinct access levels:
Account admin: hold full control across the test lifecycle, with the ability to create tests, view tests of any status, edit drafts, and launch or change test statuses.
Project Expert/Analysts users: can create new tests, view tests of any status, and edit draft tests, but lack permission to launch tests or change their status.
Viewers: have strictly read-only access, allowing them to view tests in any status without the ability to create, edit, or manage them.
Technical constraints
Check that your technical environment is supported in the table below:
| Tech Environment | Supported / Not supported |
| Web (client-side) | ✅ Supported |
| Mobile native apps | ❌ Not supported |
| Single Page Applications (SPAs) | ✅ Supported |
| Self-hosted tag deployments | ⚠️ Supported provided Tag redeployment |
| strict Content Security Policy (CSP) | ❌ Would block external scripts, and prevent visual editor from loading on your website |
Implement the Experiments Tag
You can run experiments with your existing Contentsquare tag.
Yet, we recommend adding the dedicated Experiments tag to the initial implementation because it helps reduce flicker.
Step 1: Find your Experiments tag URL
Your existing Contentsquare tag has this format:
https://t.contentsquare.net/uxa/[your-site-id].jsReplace uxa with experiment to create the Experiments tag URL:
https://t.contentsquare.net/experiment/[your-site-id].jsUse the same site ID as your existing Contentsquare tag.
Step 2: Add the tag to your website
- Add the Experiments tag at the top of the <head> section, in your website source code.
- Place the tag before other scripts that load on the page.
- Publish the change to your website.
Step 3: Verify the tag
- Open a page where the Experiments tag is installed.
- Open the Console tab in your browser developer tools.
- Enter CS_EXPERIMENT_CONF in the Console
- Once your experiment is launched, this variable should return a populated configuration object containing experiment information.
You are now ready to create your A/B test.