Harm
Harm

Reputation: 665

How can I override event action for a Universal Analytics tag in a server-side GTM container that receives its hits from a GA4 tag?

This is my situation:

event_category, event_label and non_interaction are correctly translated to ec, el and ni in the outgoing HTTP request, but somehow event_action isn’t. ea is populated with the value of event instead.

I’ve tried explicitly creating an Event Data variable for event_action and mapping that to event_action in the server-side UA tag, but that didn’t change anything.

So, how can I override event action for a Universal Analytics tag in a server-side GTM container that receives its hits from a GA4 tag?

Upvotes: 0

Views: 573

Answers (1)

Harm
Harm

Reputation: 665

Found it: It looks like you can override any of the parameters of the outgoing HTTP request by adding x-ga-mp1- plus the parameter to “Override Fields to Set” in the server-side Universal Analytics tag. So in my case that means x-ga-mp1-ea and a couple more:

Universal Analytics tag in a server-side GTM container

(Figured this out when trying to add a custom dimension.)

Upvotes: 0

Related Questions