Skip to content

Commit 694eeb6

Browse files
authored
Add more details about event naming
1 parent a293225 commit 694eeb6

File tree

1 file changed

+10
-1
lines changed
  • src/connections/destinations/catalog/actions-google-analytics-4-web

1 file changed

+10
-1
lines changed

src/connections/destinations/catalog/actions-google-analytics-4-web/index.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,18 @@ The automatically collected and enhanced measurement events include parameters b
4646

4747
### Custom Event Naming
4848

49+
Google Analytics 4 has strict rules for event naming and require you to adhere to those requirements in order to successfully send events.
50+
51+
Per Google's documentation on [event naming](https://support.google.com/analytics/answer/13316687?hl=en&ref_topic=13367860&sjid=2167389739796023681-NA#zippy=%2Cweb){:target="_blank"}, follow these rules when choosing a name for your event:
52+
53+
- Event names are case sensitive. For example, my_event and My_Event are distinct events.
54+
- Event names can include English and non-English words and letters.
55+
- Do not use reserved prefixes and event names.
56+
- Event names must start with a letter. Use only letters, numbers, and underscores. Don't use spaces.
57+
4958
Google Analytics 4 does not accept custom event names that include spaces. Segment replaces spaces in the Event Name in the Custom Event action with an underscore. As a result, you will see custom events snake cased in Google Analytics 4.
5059

51-
Google Analytics 4 is also case sensitive. If you would like all event names to be lowercase, use the `Lowercase Event Name` setting in the Custom Event action. If this setting is disabled, Google will treat event names with different casing as distinct events. For more information, see [Google Analytics 4 Event name rules](https://support.google.com/analytics/answer/13316687?hl=en&ref_topic=13367860&sjid=2167389739796023681-NA#zippy=%2Cweb){:target="_blank"}.
60+
Google Analytics 4 is also case sensitive. If you would like all event names to be lowercase, use the `Lowercase Event Name` setting in the Custom Event action. If this setting is disabled, Google will treat event names with different casing as distinct events.
5261

5362
### Custom Dimensions and Metrics
5463

0 commit comments

Comments
 (0)