- Issue created by @Rob_Feature
- πΊπΈUnited States Rob_Feature
Just an update: I read that the gtag sends a page_view event automatically on 'config'....so it seems like maybe the code thats in the module should work. But mine isn't. Anyone having luck with Custom Dimensions and GA4? Wondering what I might be missing...
- Status changed to Postponed: needs info
over 1 year ago 2:46pm 5 April 2023 - πΊπΈUnited States mglaman WI, USA
The
config
triggers a page view. Dimensions and metrics should be called usingset
before any events. These are then automatically attached to all events that get tracked.I discussed this with the Google Analytics team to make sure that was correct.
Can you dump a sample of what the module is generating in terms of the set/config/event calls with gtag? And obfuscate any values as needed.
I think i'm facing the same problem, GA-4 custom dimentions does't work, maybe i set something wrong. Did you find what was ann issue?
So i managed to make it work by setting names properly in drupal module settings, they have to match event parameter in GA4. Maybe it should be mantioned in module README.