Copying a variable in Matomo Tag Manager is a quick and efficient way to replicate tracking setups across different containers or websites. Learn more about copying a Matomo Tag Manager container and its components.

Note: Super users and users with the appropriate Tag Manager write and custom template capabilities can copy variables.

  1. Open Matomo > Tag Manager.
  2. Navigate to Manage Containers and open the container that holds the variable you want to copy.
  3. Go to Variables and click the Copy icon next to the relevant variable.
    copy a variable in matomo tag manager
  4. By default, the variable configuration will be duplicated to the same website and container as the original variable.
  5. You can change this by selecting a different website and/or destination container.
  6. Click Copy to create the new variable.

New Variable Configuration

Any referenced variables are automatically copied to the destination container if no matching variables exist. This ensures the variable functions correctly without manual reconfiguration.

Available from Matomo version 5.2.0

Previous FAQ: Manage variables in Matomo Tag Manager