Using GA we could set dimensions using set
:
ga ('set', 'ua_dimension1', 'dimensionValue');
And this dimensions would be applied to the rest of the calls.
But using GA4's set
like this:
gtag('set', {'ua_dimension1': 'dimensionValue'});
It does nothing, and the dimension isn't added to the rest of the calls...
When I set the dimension using config
it does work:
gtag ('config', 'GA4_KEY', { 'ua_dimension1', 'dimensionValue' });
But it overrides all previous parameters that i setted to config
before... Is there a way to set dimensions using config
without overriding the previous config
calls?
What im missing? In the official docs they say that set
has to work as it does before, but it isn't.
I already registered this dimensions on my GA4 account, and waited 24 hours.