You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending an event with custom parameters, the last parameters will be persisted to further calls if they are not overwritten. I'm not sure if this is intentional, but it's very annoying, since this makes other events send totally irrelevant data.
The dataLayer push is correct, but the actual values transmitted to GA4 are not.
gtag output - you can see the second test event also has the format property, eventhough it was not defined.
gtag("event", "test", {
format: "test_value", // this is correct and as specified
user_properties: {test_property: "test_prop_value"},
send_to: "G-XXXX"
})
gtag("event", "test_2", {
format: "test_value", // this should not be here!
user_properties: {test_property: "test_prop_value"},
send_to: "G-XXXXX"
})
If i send three events after each other, only the last custom parameter is persisted -> makes it seem even more like a bug 🤔
Since GA4 does not use action, category etc. anymore, the user has to specify their own parameter name and values.
The text was updated successfully, but these errors were encountered:
fogx
changed the title
Bug: custom properties are
Bug: last custom property is persisted
Jan 8, 2023
But I see you are using GA / gtag, this is not related to this repo 🤔
i don't understand. I'm using this repo (see input) to send the data to the datalayer. It uses gtag under the hood. The outputs that i pasted are from the GTM preview, not code snippets.
Info
When sending an event with custom parameters, the last parameters will be persisted to further calls if they are not overwritten. I'm not sure if this is intentional, but it's very annoying, since this makes other events send totally irrelevant data.
The dataLayer push is correct, but the actual values transmitted to GA4 are not.
Input
Output or Error
DataLayer - everything is correct here
gtag output - you can see the second test event also has the
format
property, eventhough it was not defined.Expected Output
Additional Context
If i send three events after each other, only the last custom parameter is persisted -> makes it seem even more like a bug 🤔
Since GA4 does not use
action
,category
etc. anymore, the user has to specify their own parameter name and values.The text was updated successfully, but these errors were encountered: