Google Tag Manager and Google Analytics on Simo Ahava's blog Follow User Distributor - Custom Tag Template You can use this tag to randomly assign users to buckets, and then to store this information in a first-party cookie. This is useful for quick A/B tests and for creating samples or cohorts of your visitors. https://www.simoahava.com/custom-templates/user-distributor/ simoahava.com