GA4 Custom Dimensions

Hello, I don’t find any informations on how to set custom dimensions via zaraz.

I have setup an split testing on my website, managed in PHP, and I want to set a custom dimension to filter users in Google Analytics.

I’ve read the doc about additionnal fields ( but I dont understand how it works. What should I put in the field?


How can I set a dimension value from a value in PHP at user level ?

I want something like this :

gtag('set', 'user_properties', {
  app_landing_version: '<?= $app_landing_version ?>'
1 Like