Skip to content

[Content]:  #2745

@lizkane222

Description

@lizkane222

What article on segment.com/docs is affected?

https://segment.com/docs/connections/destinations/catalog/actions-google-analytics-4/#custom-events

What part(s) of the article would you like to see updated?

https://segment.com/docs/connections/destinations/catalog/actions-google-analytics-4/#custom-events

GA4 rejects events with the pipe in the event name : | so event : "Home | Nav" would technically be silently dropped
This is to be expected, but should possibly be added to our docs and possibly taken into account for transforming events.

Limitations
Parameter names (including item parameters) must be 40 characters or fewer, may only contain alpha-numeric characters and underscores, and must start with an alphabetic character.

We have a note here that Google does not accept spaces so we remove spaces and snakecase: https://segment.com/docs/connections/destinations/catalog/actions-google-analytics-4/#custom-events. However, I didn’t include anything about special characters. We also link to the Event naming rules in the Google documentation. Do you think we need more than that? If so, could you file a docs PR to add more to that blue box and share here so I can review?

It might be beneficial for our customers to see a few examples of bad naming conventions to catch their eye? I definitely read that information/warning box but didn’t consider events with special characters as being potentially problematic.

Such as :
event : "Home | Profile" → will be rejected by GA4
event : "Home Profile" → will be accepted by GA4 and converted to Home_Profile

Additional information

Please view conversation between Liz Kane & Kiara Daswani about this topic.
https://segment.slack.com/archives/C017ZNTF1B8/p1649795851465779

Metadata

Metadata

Assignees

Labels

contentWhen the bug is about content that needs to get fixedtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions