{"componentChunkName":"component---node-modules-rocketseat-gatsby-theme-docs-core-src-templates-docs-query-js","path":"/destinations/streaming-destinations/google-analytics-4/google-analytics-4-cloud-mode/","result":{"data":{"mdx":{"id":"06806d20-7501-510d-be7d-ea4ff61aa409","excerpt":"RudderStack lets you send your event data to Google Analytics 4 via the  cloud mode  by leveraging the  Google Analytics 4 Measurement Protocol . Tagging…","fields":{"slug":"/destinations/streaming-destinations/google-analytics-4/google-analytics-4-cloud-mode/"},"frontmatter":{"title":"Google Analytics 4 Cloud Mode","description":"Detailed technical documentation on sending events to Google Analytics 4 using the RudderStack cloud mode.","image":null,"disableTableOfContents":null},"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Google Analytics 4 Cloud Mode\",\n  \"description\": \"Detailed technical documentation on sending events to Google Analytics 4 using the RudderStack cloud mode.\"\n};\n\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\n\nvar Link = makeShortcode(\"Link\");\nvar GhBadge = makeShortcode(\"GhBadge\");\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"RudderStack lets you send your event data to Google Analytics 4 via the \", mdx(Link, {\n    to: \"/destinations/rudderstack-connection-modes/#cloud-mode\",\n    mdxType: \"Link\"\n  }, \"cloud mode\"), \" by leveraging the \", mdx(\"a\", {\n    href: \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag#payload\"\n  }, \"Google Analytics 4 Measurement Protocol\"), \".\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"Find the open source transformer code for this destination in the \", mdx(\"a\", {\n    href: \"https://github.com/rudderlabs/rudder-transformer/tree/master/v0/destinations/ga4\"\n  }, \"GitHub repository\"), \".\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"Google Analytics 4 does not officially support a complete server-to-server integration. RudderStack monitors the GA4 Measurement Protocol API capabilities and accordingly sends a reasonable level of reporting data for the customers to Google Analytics 4.\"), mdx(GhBadge, {\n    label: 'Stability',\n    message: 'Beta',\n    color: 'blueviolet',\n    mdxType: \"GhBadge\"\n  }), mdx(\"h2\", {\n    \"id\": \"tagging-methods\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#tagging-methods\",\n    \"aria-label\": \"tagging methods permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Tagging methods\"), mdx(\"p\", null, \"RudderStack supports both the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"gtag\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"firebase\"), \" ways for tagging in websites in the cloud mode. However, note that:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"If you use \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"gtag\"), \", passing the \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"client_id\"), \" parameter is mandatory.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"If you use \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"firebase\"), \", passing the \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"app_instance_id\"), \" parameter is mandatory.\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"Refer to the \", mdx(\"a\", {\n    href: \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag#payload\"\n  }, \"Google Analytics 4 Measurement Protocol\"), \" guide for more information.\"), mdx(\"p\", null, \"The mappings for the above-mentioned mandatory parameters are listed in the following table:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Parameters\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Mapping value\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"client_id\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"from \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"externalID\"), \" \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"ga4ClientId\"), \" or \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"anonymousId\"), \" or \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"messageId\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"app_instance_id\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"from \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"externalID\"), \" \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"ga4AppInstanceId\"))))), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"Refer to the \", mdx(Link, {\n    to: \"#how-do-i-obtain-app_instance_id\",\n    mdxType: \"Link\"\n  }, \"FAQ\"), \" section for more information on how to obtain the \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"app_instance_id\"), \".\"), mdx(\"h3\", {\n    \"id\": \"supported-mappings\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#supported-mappings\",\n    \"aria-label\": \"supported mappings permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Supported mappings\"), mdx(\"p\", null, \"The following table lists the mappings for the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"optional\"), \" parameters (common for both \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"gtag\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"firebase\"), \"):\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Optional Parameters\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Mapping value\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Description\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"user_id\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"userId\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.userId\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.id\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.userId\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.id\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Unique identifier for a user which helps Google Analytics 4 know if two devices/browsers belong to the same user.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"timestamp_micros\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"originalTimestamp\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"timestamp\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Timestamp in ISO 8601 format.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"non_personalized_ads\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.device.adTrackingEnabled\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Indicates whether the events should be used for personalized ads. If \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.device.adTrackingEnabled\"), \" is set as \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"true\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"non_personalised_ads\"), \" will be set to \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"false\"), \".\")))), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"Google Analytics 4 Measurement Protocol only supports timestamps 72 hours into the past and 15 minutes into the future. RudderStack discards any event with a timestamp out of this range.\"), mdx(\"h2\", {\n    \"id\": \"identify\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#identify\",\n    \"aria-label\": \"identify permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Identify\"), mdx(\"p\", null, \"The \", mdx(Link, {\n    to: \"/event-spec/standard-events/identify/\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\")), \" call lets you identify a user and associate them to their actions. It also lets you record any traits about them like their name, email, etc.\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"For more information on the dashboard settings related to \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"identify\"), \" events, refer to the \", mdx(Link, {\n    to: \"/destinations/streaming-destinations/google-analytics-4/setting-up-google-analytics-4-in-rudderstack/#identify\",\n    mdxType: \"Link\"\n  }, \"Identify settings\"), \" section.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call using \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"gtag\"), \" is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.identify(\\\"1hKOmRA4GRlm\\\", {\\n    firstLogin: true,\\n    method: \\\"Google\\\",\\n    value: 10,\\n    currency: \\\"USD\\\"\\n});\\n\")), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call using \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"firebase\"), \" is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.identify(\\\"1hKOmRA4GRlm\\\", {\\n    firstLogin: true,\\n    method: \\\"Google\\\",\\n    value: 10,\\n    currency: \\\"USD\\\"\\n}, {\\n    externalId: [{\\n        type: \\\"ga4AppInstanceId\\\",\\n        id: \\\"f0dd99b6f979fb551ce583373900f937\\\"\\n    }],\\n});\\n\")), mdx(\"h2\", {\n    \"id\": \"track\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#track\",\n    \"aria-label\": \"track permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Track\"), mdx(\"p\", null, \"The \", mdx(Link, {\n    to: \"/event-spec/standard-events/track\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\")), \" call lets you capture user events along with the properties associated with them.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call using \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"gtag\"), \" is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.track('Product List Viewed', {\\n  list_id: \\\"related_products\\\",\\n  category: \\\"Related_products\\\",\\n  products: [{\\n    product_id: \\\"507f1f77bcf86cd799439011\\\",\\n    name: \\\"Monopoly: 3rd Edition\\\",\\n    coupon: \\\"SUMMER_FUN\\\",\\n    category: \\\"Apparel\\\",\\n    brand: \\\"Google\\\",\\n    variant: \\\"green\\\",\\n    price: \\\"19\\\",\\n    quantity: \\\"2\\\",\\n    position: \\\"1\\\",\\n    affiliation: \\\"Google Merchandise Store\\\",\\n    currency: \\\"USD\\\",\\n    discount: 2.22,\\n    item_category2: \\\"Adult\\\",\\n    item_category3: \\\"Shirts\\\",\\n    item_category4: \\\"Crew\\\",\\n    item_category5: \\\"Short sleeve\\\",\\n    item_list_id: \\\"related_products\\\",\\n    item_list_name: \\\"Related Products\\\",\\n    location_id: \\\"L_12345\\\"\\n  }]\\n}, {\\n    externalId: [{\\n        type: \\\"ga4ClientId\\\",\\n        id: \\\"client_id\\\"\\n    }],\\n});\\n\")), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call using \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"firebase\"), \" is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.track('Product List Viewed', {\\n  list_id: \\\"related_products\\\",\\n  category: \\\"Related_products\\\",\\n  products: [{\\n    product_id: \\\"507f1f77bcf86cd799439011\\\",\\n    name: \\\"Monopoly: 3rd Edition\\\",\\n    coupon: \\\"SUMMER_FUN\\\",\\n    category: \\\"Apparel\\\",\\n    brand: \\\"Google\\\",\\n    variant: \\\"green\\\",\\n    price: \\\"19\\\",\\n    quantity: \\\"2\\\",\\n    position: \\\"1\\\",\\n    affiliation: \\\"Google Merchandise Store\\\",\\n    currency: \\\"USD\\\",\\n    discount: 2.22,\\n    item_category2: \\\"Adult\\\",\\n    item_category3: \\\"Shirts\\\",\\n    item_category4: \\\"Crew\\\",\\n    item_category5: \\\"Short sleeve\\\",\\n    item_list_id: \\\"related_products\\\",\\n    item_list_name: \\\"Related Products\\\",\\n    location_id: \\\"L_12345\\\"\\n  }]\\n}, {\\n  externalId: [{\\n    type: \\\"ga4AppInstanceId\\\",\\n    id: \\\"f0dd99b6f979fb551ce583373900f937\\\"\\n  }],\\n});\\n\")), mdx(\"h2\", {\n    \"id\": \"page\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#page\",\n    \"aria-label\": \"page permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Page\"), mdx(\"p\", null, \"The \", mdx(Link, {\n    to: \"/event-spec/standard-events/page\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"page\")), \" call lets you record your website's page views with any additional relevant information about the viewed page. \"), mdx(\"p\", null, \"RudderStack maps the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"page\"), \" call to a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"page_view\"), \" event by default, and passes it to Google Analytics 4 as a custom event. \"), mdx(\"p\", null, \"As mentioned in the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"#track\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"track\")), \" section above, the RudderStack cloud mode supports both the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"gtag\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"firebase\"), \" methods for tagging in websites.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"page\"), \" call using \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"gtag\"), \" is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.page();\\n\")), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"page\"), \" call using \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"firebase\"), \" is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.page({}, {\\n  externalId: [{\\n    type: \\\"ga4AppInstanceId\\\",\\n    id: \\\"f0dd99b6f979fb551ce583373900f937\\\"\\n  }],\\n});\\n\")), mdx(\"h3\", {\n    \"id\": \"supported-mappings-1\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#supported-mappings-1\",\n    \"aria-label\": \"supported mappings 1 permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Supported mappings\"), mdx(\"p\", null, \"The following table lists the property mappings between RudderStack and Google Analytics 4: \"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack property\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Google Analytics 4 property\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.page.referrer\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"page_referrer\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.page.title\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"page_title\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.page.url\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"page_location\"))))), mdx(\"h2\", {\n    \"id\": \"group\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#group\",\n    \"aria-label\": \"group permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Group\"), mdx(\"p\", null, \"The \", mdx(Link, {\n    to: \"/event-spec/standard-events/group/\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"group\")), \" call lets you link an identified user with a group such as a company, organization, or an account, and record any traits associated with that group, for example, company name, number of employees, etc.\"), mdx(\"p\", null, \"RudderStack maps the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"group\"), \" call to the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"join_group\"), \" event by default.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"group\"), \" call using \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"gtag\"), \" is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.group(\\\"1hKOmRA4\\\", {\\n    \\\"custom1\\\": 1234,\\n    \\\"custom2\\\": \\\"custom2\\\"\\n});\\n\")), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"group\"), \" call using \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"firebase\"), \" is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.group(\\\"1hKOmRA4\\\", {\\n    \\\"custom1\\\": 1234,\\n    \\\"custom2\\\": \\\"custom2\\\"\\n}, {\\n    externalId: [{\\n        type: \\\"ga4AppInstanceId\\\",\\n        id: \\\"f0dd99b6f979fb551ce583373900f937\\\"\\n    }],\\n});\\n\")), mdx(\"h2\", {\n    \"id\": \"e-commerce-event-tracking\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#e-commerce-event-tracking\",\n    \"aria-label\": \"e commerce event tracking permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"E-commerce event tracking\"), mdx(\"p\", null, \"RudderStack supports e-commerce tracking for Google Analytics 4. You can refer to the \", mdx(Link, {\n    to: \"/event-spec/ecommerce-events-spec/\",\n    mdxType: \"Link\"\n  }, \"E-commerce Events Specification\"), \" guide for sending events while instrumenting your site with the RudderStack SDK.\"), mdx(\"p\", null, \"The following table lists the mappings between the RudderStack and Google Analytics 4 events:\"), mdx(\"table\", null, mdx(\"tr\", null, mdx(\"th\", null, \"RudderStack event\"), mdx(\"th\", null, \"Google Analytics 4 event\")), mdx(\"tr\", null, mdx(\"td\", null, \"Products Searched\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"search\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Product List Viewed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"view_item_list\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Product Clicked\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"select_item\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Promotion Viewed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"view_promotion\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Promotion Clicked\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"select_promotion\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Product Viewed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"view_item\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Product Added\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"add_to_cart\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Product Removed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"remove_from_cart\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Cart Viewed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"view_cart\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Product Added to Wishlist\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"add_to_wishlist\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Checkout Started\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"begin_checkout\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Order Completed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"purchase\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Order Refunded\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"refund\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Product Shared\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"share\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Cart Shared\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"share\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Payment Info Entered\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"add_payment_info\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Checkout Step Completed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"add_shipping_info\")))), mdx(\"p\", null, \"The following table lists the RudderStack and Google Analytics 4 properties mappings based on the specific RudderStack events:\"), mdx(\"table\", null, mdx(\"tr\", null, mdx(\"th\", null, \"RudderStack event\"), mdx(\"th\", null, \"RudderStack property\"), mdx(\"th\", null, \"Google Analytics 4 property\")), mdx(\"tr\", null, mdx(\"td\", null, \"Products Searched\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.query\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"search_term\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Product List Viewed\", mdx(\"br\", null), \"Product Clicked\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.list_id\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.category\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"item_list_id\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"item_list_name\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"5\"\n  }, \"Promotion Viewed\", mdx(\"br\", null), \"Promotion Clicked\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.creative_name\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.creative\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"creative_name\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.creative_slot\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.position\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"creative_slot\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.location_id\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"location_id\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.promotion_name\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.name\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"promotion_name\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.promotion_id\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"promotion_id\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"2\"\n  }, \"Product Viewed\", mdx(\"br\", null), \"Product Added to Wishlist\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.currency\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"currency\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.total\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.price\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.value\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.revenue\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"value\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"2\"\n  }, \"Product Added\", mdx(\"br\", null), \"Product Removed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.currency\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"currency\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.total\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.value\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.revenue\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.price\"), \" X \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.quantity\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"value\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"2\"\n  }, \"Cart Viewed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.currency\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"currency\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.total\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.value\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.revenue\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"value\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"2\"\n  }, \"Checkout Started\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.currency\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.coupon\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"currency\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"coupon\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.total\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.value\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.revenue\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"value\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"2\"\n  }, \"Order Completed\", mdx(\"br\", null), \"Order Refunded\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.currency\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.order_id\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.affiliation\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.coupon\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.shipping\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.tax\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"currency\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"transaction_id\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"affiliation\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"coupon\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"shipping\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"tax\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.total\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.value\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.revenue\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"value\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"2\"\n  }, \"Product Shared\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.share_via\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.content_type\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"method\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"content_type\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.item_id\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.product_id\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.sku\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"item_id\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"2\"\n  }, \"Cart Shared\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.share_via\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.content_type\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"method\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"content_type\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.item_id\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.cart_id\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"item_id\"))), mdx(\"tr\", null, mdx(\"td\", null, \"Group\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"groupId\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"group_id\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"2\"\n  }, \"Payment Info Entered\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.payment_method\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.coupon\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.currency\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"payment_type\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"coupon\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"currency\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.total\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.value\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.revenue\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"value\"))), mdx(\"tr\", null, mdx(\"td\", {\n    rowSpan: \"4\"\n  }, \"Checkout Step Completed\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.currency\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"currency\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.total\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.value\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.revenue\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"value\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.coupon\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"coupon\"))), mdx(\"tr\", null, mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.shipping_method\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"shipping_tier\")))), mdx(\"p\", null, \"Most of the above mentioned events include the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"products\"), \" parameter (mapped to the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#view_item_list\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"items\")), \" parameter) which accepts a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"products\"), \" array.\"), mdx(\"p\", null, \"The below table details out the common mappings for the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"products\"), \" array:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Google Analytics 4\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.product_id\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_id\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.name\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_name\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.coupon\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"coupon\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.price\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"price\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.position\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"index\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.category\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_category\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.brand\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_brand\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.variant\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_variant\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.quantity\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"quantity\"))))), mdx(\"p\", null, \"The below mentioned e-commerce events include the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"products\"), \" parameter which accepts a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"products\"), \" array. \"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Presence of \", mdx(\"inlineCode\", {\n    parentName: \"th\"\n  }, \"products\"), \" parameter\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Product List Viewed\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Product Clicked\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Product Viewed\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Product Added\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Product removed\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Cart Viewed\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Checkout Started\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Payment Info entered\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Order Completed\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Order Refunded\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Optional\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Product Added to Wishlist\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"View Search Results\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Optional\")))), mdx(\"p\", null, \"The following table details the parameter mappings present in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"products\"), \" array, for the above events:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Google Analytics 4\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.affiliation\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"affiliation\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.currency\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"currency\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.discount\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"discount\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_category2\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_category2\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_category3\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_category3\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_category4\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_category4\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_category5\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_category5\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_list_id\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_list_id\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_list_name\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_list_name\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.location_id\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"location_id\"))))), mdx(\"p\", null, \"The below mentioned e-commerce events include the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"products\"), \" parameter (mapped to the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#view_item_list\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"items\")), \" parameter) which accepts a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"products\"), \" array.\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Presence of \", mdx(\"inlineCode\", {\n    parentName: \"th\"\n  }, \"products\"), \" parameter\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Promotion Viewed\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Promotion Clicked\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Optional\")))), mdx(\"p\", null, \"The following table details the parameter mappings present in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"products\"), \" array, for the above events:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Google Analytics 4\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.affiliation\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"affiliation\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.creative_name\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"creative_name\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.creative_slot\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"creative_slot\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.currency\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"currency\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.discount\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"discount\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_category2\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_category2\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_category3\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_category3\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_category4\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_category4\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_category5\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_category5\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_list_id\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_list_id\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.item_list_name\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"item_list_name\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.location_id\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"location_id\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.promotion_id\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"promotion_id\"))), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"properties.products.$.promotion_name\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"promotion_name\"))))), mdx(\"h2\", {\n    \"id\": \"non-e-commerce-events-tracking\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#non-e-commerce-events-tracking\",\n    \"aria-label\": \"non e commerce events tracking permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Non e-commerce events tracking\"), mdx(\"p\", null, \"The below table lists the mappings of the non e-commerce \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" events and properties that are passed to Google Analytics 4 events and properties:\"), mdx(\"table\", null, mdx(\"tr\", null, mdx(\"th\", {\n    colSpan: \"2\"\n  }, \"Event Mapping\"), mdx(\"th\", {\n    colSpan: \"2\"\n  }, \"Property Mapping\")), mdx(\"tr\", null, mdx(\"th\", null, \"RudderStack\"), mdx(\"th\", null, \"Google Analytics 4\"), mdx(\"th\", null, \"RudderStack\"), mdx(\"th\", null, \"Google Analytics 4\")), mdx(\"tr\", null, mdx(\"td\", null, \"generate_lead\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"generate_lead\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.${currency}\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.${value}\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"currency\"), mdx(\"br\", null), mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"value\"))), mdx(\"tr\", null, mdx(\"td\", null, \"login\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"login\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.${method}\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"method\"))), mdx(\"tr\", null, mdx(\"td\", null, \"sign_up\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"sign_up\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.${method}\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"method\"))), mdx(\"tr\", null, mdx(\"td\", null, \"view_search_results\"), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"view_search_results\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.search_term\")), mdx(\"td\", null, mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"search_term\")))), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"The \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"{currency}\"), \", \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"{value}\"), \", and \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"{method}\"), \" properties mentioned above are dynamic and their actual value depends on the key name passed in the dashboard. Refer to the \", mdx(Link, {\n    to: \"/destinations/analytics/google-analytics-4/setting-up-google-analytics-4-in-rudderstack/#identify\",\n    mdxType: \"Link\"\n  }, \"Identify\"), \" section for more information.\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"You can pass the custom user properties to any of the events by passing them as \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"properties.user_properties\"), \". Refer to the \", mdx(\"a\", {\n    href: \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/user-properties?client_type=gtag\"\n  }, \"Google Analytics 4 documentation\"), \" for more information.\"), mdx(\"h2\", {\n    \"id\": \"rules-for-naming-custom-events\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#rules-for-naming-custom-events\",\n    \"aria-label\": \"rules for naming custom events permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Rules for naming custom events\"), mdx(\"p\", null, \"You must follow the below rules while choosing a\\xA0name for the custom events:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Event names are case sensitive. For example,\\xA0\", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"my_event\"), \"\\xA0and\\xA0\", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"My_Event\"), \"\\xA0are two distinct events.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Event names must start with a letter. Only letters, numbers, and underscores are permitted. \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"DO NOT\"), \" use spaces.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Do not use reserved prefixes and event names. Refer to the \", mdx(\"a\", {\n    href: \"#faq\"\n  }, \"FAQ\"), \" section to know more about the reserved event names and prefixes.\")), mdx(\"h2\", {\n    \"id\": \"tracking-active-users-and-sessions\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#tracking-active-users-and-sessions\",\n    \"aria-label\": \"tracking active users and sessions permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Tracking active users and sessions\"), mdx(\"p\", null, \"As Google Analytics 4 only reports the users who engage with your website for a non-zero time, RudderStack sets the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"engagement_time_msec\"), \" parameter to 1, by default. To track engagement time in your events, you can set the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"engagement_time_msec\"), \" field to a different value.\"), mdx(\"p\", null, \"RudderStack maps the following properties to GA4's \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"engagement_time_msec\"), \" property:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack properties\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Google Analytics 4 property\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.engagementTimeMsec\"), \" \", mdx(\"br\", null), mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.engagementTimeMsec\"), \" \", mdx(\"br\", null), \" \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.engagement_time_msec\"), \" \", mdx(\"br\", null), \" \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.engagement_time_msec\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"engagement_time_msec\"))))), mdx(\"p\", null, \"You can use the Google Analytics 4 \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"session_id\"), \" parameter to identify the session associated with a particular event. \"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"To read more about sessions in Google Analytics 4, refer to this \", mdx(\"a\", {\n    href: \"https://support.google.com/analytics/answer/9191807?hl=en#zippy=\"\n  }, \"Google Analytics 4 Help article\"), \".\"), mdx(\"p\", null, \"RudderStack maps the following properties to GA4's \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"session_id\"), \" property:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"RudderStack properties\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"Google Analytics 4 property\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.sessionId\"), mdx(\"br\", null), mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.sessionId\"), mdx(\"br\", null), mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"traits.session_id\"), mdx(\"br\", null), mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"context.traits.session_id\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"session_id\"))))), mdx(\"div\", {\n    className: \"warningBlock\"\n  }, \"RudderStack automatically collects \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"engagement_time_msec\"), \" and \", mdx(\"code\", {\n    className: \"inline-code\"\n  }, \"session_id\"), \" when sending events via the \", mdx(Link, {\n    to: \"/destinations/streaming-destinations/google-analytics-4/google-analytics-4-device-mode/\",\n    mdxType: \"Link\"\n  }, \"device mode\"), \". However, they must be manually passed while sending events via the cloud mode.\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"For more information on the optional reporting parameters in Google Analytics 4, refer to their \", mdx(\"a\", {\n    href: \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?client_type=firebase#optional_parameters_for_reports\"\n  }, \"documentation\"), \".\"), mdx(\"h2\", {\n    \"id\": \"faq\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#faq\",\n    \"aria-label\": \"faq permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"FAQ\"), mdx(\"h3\", {\n    \"id\": \"ive-set-up-ga4-as-a-destination-in-rudderstack-but-im-not-seeing-the-expected-data-flow-through-in-the-ga4-dashboard-what-should-i-do\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#ive-set-up-ga4-as-a-destination-in-rudderstack-but-im-not-seeing-the-expected-data-flow-through-in-the-ga4-dashboard-what-should-i-do\",\n    \"aria-label\": \"ive set up ga4 as a destination in rudderstack but im not seeing the expected data flow through in the ga4 dashboard what should i do permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"I\\u2019ve set up GA4 as a destination in RudderStack but I\\u2019m not seeing the expected data flow through in the GA4 dashboard. What should I do?\"), mdx(\"p\", null, \"To view the events sent to GA4, go to your \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://analytics.google.com/\"\n  }, \"Google Analytics\"), \" dashboard and navigate to \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Reports\"), \" > \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Realtime\"), \".\"), mdx(\"p\", null, \"While the events typically show up within a few seconds, note that it can take GA4 up to 24 hours to process their data and appear on other reports. Also, not all types of data flow through to its realtime dashboard. It may be best to consult GA4\\u2019s FAQs for the most up-to-date information on its latest capabilities and limitations.\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"For more information on checking the realtime view or verifying your implementation, refer to this \", mdx(\"a\", {\n    href: \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/verify-implementation?client_type=gtag#realtime\"\n  }, \"GA4 documentation\"), \". You can also refer to this \", mdx(\"a\", {\n    href: \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/troubleshooting?client_type=gtag\"\n  }, \"Troubleshooting guide\"), \" for steps on fixing any implementation errors.\"), mdx(\"h3\", {\n    \"id\": \"what-are-the-reserved-prefixes-in-google-analytics-4\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#what-are-the-reserved-prefixes-in-google-analytics-4\",\n    \"aria-label\": \"what are the reserved prefixes in google analytics 4 permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"What are the reserved prefixes in Google Analytics 4?\"), mdx(\"p\", null, \"The reserved prefixes in Google Analytics 4 cannot be used for custom events. The list of such prefixes is mentioned below:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"_ (underscore)\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"firebase_\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"ga_\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"google_\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"gtag.\")), mdx(\"p\", null, \"Refer to the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://support.google.com/analytics/answer/10085872#zippy=%2Cweb%2Cin-this-article%2Creserved-prefixes-and-event-names\"\n  }, \"GA4 documentation\"), \" for more information.\"), mdx(\"h3\", {\n    \"id\": \"what-are-the-reserved-event-parameter-and-user-property-names-in-google-analytics-4\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#what-are-the-reserved-event-parameter-and-user-property-names-in-google-analytics-4\",\n    \"aria-label\": \"what are the reserved event parameter and user property names in google analytics 4 permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"What are the reserved event, parameter, and user property names in Google Analytics 4?\"), mdx(\"p\", null, \"Google Analytics 4 has some reserved event, parameter, and user property names that cannot be used. Refer to the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag#reserved_names\"\n  }, \"Measurement Protocol (Google Analytics 4)\"), \" guide for a complete list of reserved names.\"), mdx(\"h3\", {\n    \"id\": \"how-do-i-obtain-app_instance_id\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#how-do-i-obtain-app_instance_id\",\n    \"aria-label\": \"how do i obtain app_instance_id permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"How do I obtain \", mdx(\"inlineCode\", {\n    parentName: \"h3\"\n  }, \"app_instance_id\"), \"?\"), mdx(\"p\", null, \"You can retrieve \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"app_instance_id\"), \" through the Firebase SDK depending on the platform where the SDK is installed: \"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics#public-taskstring-getappinstanceid\"\n  }, \"Android: \", mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"getAppInstanceId()\"))), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://firebase.google.com/docs/reference/kotlin/com/google/firebase/analytics/FirebaseAnalytics#getappinstanceid\"\n  }, \"Kotlin: \", mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"getAppInstanceId()\"))), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://firebase.google.com/docs/reference/swift/firebaseanalytics/api/reference/Classes/Analytics#appinstanceid\"\n  }, \"Swift: \", mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"appInstanceID()\"))), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://firebase.google.com/docs/reference/ios/firebaseanalytics/api/reference/Classes/FIRAnalytics#+appinstanceid\"\n  }, \"Objective-C: \", mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"appInstanceID\"))), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://firebase.google.com/docs/reference/cpp/namespace/firebase/analytics#getanalyticsinstanceid\"\n  }, \"C++: \", mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"GetAnalyticsInstanceId()\"))), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://firebase.google.com/docs/reference/unity/class/firebase/analytics/firebase-analytics#getanalyticsinstanceidasync\"\n  }, \"Unity: \", mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"GetAnalyticsInstanceIdAsync()\")))), mdx(\"p\", null, \"Refer to the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=firebase#payload_post_body\"\n  }, \"GA4 documentation\"), \" for more information.\"));\n}\n;\nMDXContent.isMDXComponent = true;","headings":[{"depth":2,"value":"Tagging methods"},{"depth":3,"value":"Supported mappings"},{"depth":2,"value":"Identify"},{"depth":2,"value":"Track"},{"depth":2,"value":"Page"},{"depth":3,"value":"Supported mappings"},{"depth":2,"value":"Group"},{"depth":2,"value":"E-commerce event tracking"},{"depth":2,"value":"Non e-commerce events tracking"},{"depth":2,"value":"Rules for naming custom events"},{"depth":2,"value":"Tracking active users and sessions"},{"depth":2,"value":"FAQ"},{"depth":3,"value":"I’ve set up GA4 as a destination in RudderStack but I’m not seeing the expected data flow through in the GA4 dashboard. What should I do?"},{"depth":3,"value":"What are the reserved prefixes in Google Analytics 4?"},{"depth":3,"value":"What are the reserved event, parameter, and user property names in Google Analytics 4?"},{"depth":3,"value":"How do I obtain app_instance_id?"}]}},"pageContext":{"slug":"/destinations/streaming-destinations/google-analytics-4/google-analytics-4-cloud-mode/","repositoryEditUrl":"","repositoryProvider":""}},"staticQueryHashes":["1745814598","2501019404","3460896660","839945389"]}