-
Troubleshooting Custom Dimension in Google Analytics with gtag set() Method
Hey there, I need a little help with setting up a custom dimension for GA4. I named it
chain_id
and tried to integrate it using the gtagset
method. Just to be safe, I added thecustom_map
property into the config as well (even though I am not 100% certain if that’s necessary).I noticed the issue, seems like the
chain_id
is not sent with the event. I spot-checked this with the GA debugger’s console output. I was expecting thechain_id
with the value ofTest chain id
to show up under event parameters, but it’s missing. Any thoughts on this?Check the debugger console snapshot here:
Here’s the JavaScript and HTML code I’m working with:
Cheers!
Log in to reply.