Send event parameters with every event and multiple tags in Google Analytics 4


There are some event parameters that are useful to send with every event. Google has a helpful guide here which even covers the case where you have multiple tags (I'm running GA4 and UA during the migration and this isn't unusual). You're supposed to call gtag set before calling config on each tag. This isn't working for me though, I see nothing coming through in the debug view.

Calling set before config works fine for user properties (my journey of discovery yesterday) but unless I was doing something stupid that I haven't seen yet no dice for event parameters. The code above uses the config method of initialization with a shared object to prevent duplicating code. This seems to work fine.

(Related: Export Google Fit Daily Steps, Weight and Distance to a Google Sheet; User scoped custom dimensions in Google Analytics 4 using gtag; Using the Azure Monitor REST API from Google Apps Script)

(You might also like: Las Trampas Wilderness; Coronavirus Hikes: May 2020; Open Immigration)

(All Code Posts)

Add Comment

All comments are moderated. Your email address is used to display a Gravatar and optionally for notification of new comments and to sign up for the newsletter.

I Thought He Came With You is Robert Ellison's blog.



Google Fit Daily Step Export