Academy

0% Complete

0/24 Steps

Filter lessons
Getting started
Analytics
Tag Manager
Consent Management Platform
Data Activation

How to work with Random number variable

In this video, you’ll learn how to use the Random number variable in Tag Manager to generate random values for testing and sampling. We’ll explain how it produces a new decimal number between 0 and 1 each time it’s evaluated and how you can use it to split traffic for A/B testing or assign users to random groups. You’ll see how to create the variable, view results in debug mode, and adjust the range with custom JavaScript if needed. By the end, you’ll know how to use Random number variables to add randomness and flexibility to your tracking setup.