How to copy a Variable in Matomo Tag Manager
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: Superusers and users with the appropriate Tag Manager write and custom template capabilities can copy variables.
- Open Matomo > Tag Manager.
- Navigate to Manage Containers and open the container that holds the variable you want to copy.
- Go to Variables and click the Copy icon next to the relevant variable.
- By default, the variable configuration will be duplicated to the same website and container as the original variable.
- You can change this by selecting a different website and/or destination container.
- 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.
Related Topics
- How to copy a Matomo Tag Manager Container and its components
- How to copy a Tag in Matomo Tag Manager
- How to copy a Trigger in Matomo Tag Manager
Available from Matomo version 5.2.0
Next FAQ: Develop custom variables
Previous FAQ: Manage variables in Matomo Tag Manager