---
title: Dynamic Variables Tag - Web
description: Dynamic vars are additional information on the session that can be used to segment users
lastUpdated: 12 December 2025
source_url:
  html: https://docs.contentsquare.com/en/web/dynamic-variables-tag/
  md: https://docs.contentsquare.com/en/web/dynamic-variables-tag/index.md
---

Dynamic vars are additional information on the session that can be used to segment users.

For example, they can include information on the A/B Test variations displayed to the current user.

Unlike custom vars, dynamic vars can be sent at any time during a session and do not require to send a pageview.

For more information, see [Dynamic Vars](https://docs.contentsquare.com/en/web/sending-dynamic-vars/).

## Contentsquare Tag Configurator (CSTC)

Use the [Contentsquare Tag Configurator ↗](https://support.contentsquare.com/hc/en-us/articles/37271814927633-CSTC-Template-Dynamic-Variable) to implement dynamic variables through a visual interface.

## Google Tag Manager (Template)

1. Open your container and go to the **templates** section. ![](https://docs.contentsquare.com/_astro/main-1.BR8xO2Cv_Z1Rabw1.webp)

2. Select **Search Gallery**. ![](https://docs.contentsquare.com/_astro/main-2.CDPvDirB_Z1usb2F.webp)

3. Type in **`contentsquare`** and select the **Contentsquare - Dynamic variables** option. ![](https://docs.contentsquare.com/_astro/dvars-3.2Fw8kXkd_ZBqq8b.webp)

4. Click **Add to workspace**. ![](https://docs.contentsquare.com/_astro/add-dvars.RMH3Lb5S_r6Iv3.webp)

5. Confirm your choice by selecting **Add** ![](https://docs.contentsquare.com/_astro/add-dvars-confirm.DarMmRM3_Z2rwyBj.webp)

6. Go to the Tags section and click the **New** button to create a new tag. ![](https://docs.contentsquare.com/_astro/add-tag.DuGAskV4_1e0yKr.webp)

7. Configure it by selecting the top-right button. ![](https://docs.contentsquare.com/_astro/tag-config.krkkPQIC_19Jyy1.webp)

8. Search for **`contentsquare`** and select the **Contentsquare - Dynamic variables** template that you've previously added to your container. ![](https://docs.contentsquare.com/_astro/new-dvars.Dejjxlzp_1V5FOv.webp)

9. Give a title to the tag and input your Tag ID in the dedicated field. For each dynamic variable, enter:

   * The key
   * The value
   * The type - `Number` or `String`.

   ![](https://docs.contentsquare.com/_astro/dvars.DvJS6ZIf_Z2aNh4l.webp)

10. Select the trigger: `All Pages` or `DOM Ready` (when data layer has been fully loaded).

11. Save your changes and go back to your container. You should now see both the template and the newly created tag.

    ![](https://docs.contentsquare.com/_astro/dvars-7.COHnFTXJ_kzq8m.webp)

## Adobe Launch

Prerequisite

You have installed the [Contentsquare extension](https://docs.contentsquare.com/en/web/#installing-the-contentsquare-extension).

1. Within Tag properties, select **Rules** > **Add Rule**.

2. Specify a name, events, and conditions.

3. Add an Action with the following settings:

   * Extension: `Contentsquare`,
   * Action Type: `Dynamic Variables`,
   * Name: `Contentsquare - Dynamic Variable tracking`.

4. On the right-hand side, select `Add New Variable`.

5. For each dynamic variable, enter:

   * The key
   * The value
   * The type - `Number` or `String`.

   ![](https://docs.contentsquare.com/_astro/dvars.C969k2OT_1vC7H6.webp)

6. Select **Keep Changes** > **Save**.
