Skip to content

Commit 1f08371

Browse files
Merge pull request #512 from elbwalker/511-ga4-data-merging
data config currency
2 parents d146df9 + a9de005 commit 1f08371

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

website/docs/destinations/google-ga4.mdx

+9-8
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,6 @@ ID</Link>.
9696
debug: false,
9797
include: ['globals'],
9898
pageview: false,
99-
data: {
100-
map: {
101-
currency: {
102-
value: 'EUR',
103-
key: 'data.currency',
104-
},
105-
},
106-
},
10799
server_container_url: 'https://server.example.com',
108100
snakeCase: true,
109101
transport_url: 'https://www.google-analytics.com/g/collect',
@@ -124,6 +116,15 @@ ID</Link>.
124116

125117
Properties with a `*` are required.
126118

119+
:::info
120+
121+
The `data` option is available at both, the config and event level. For
122+
E-Commerce setup the required `currency` property can be set at the config level
123+
by default with
124+
`data: { map: { currency: { value: 'EUR', key: 'data.currency' } } }`
125+
126+
:::
127+
127128
### CustomEvent
128129

129130
| Property | Type | Description |

0 commit comments

Comments
 (0)