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
Add method `getGoogleAnalyticsClientId()` to retrieve an unique identifier for a web client. This allows users to log purchase and other events from their backends using Google Analytics 4 Measurement Protocol and to have those events be connected to actions taken on the client within their Firebase web app. `getGoogleAnalyticsClientId()` will simplify this event recording process.
Copy file name to clipboardExpand all lines: docs-devsite/analytics.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Firebase Analytics
20
20
|[getAnalytics(app)](./analytics.md#getanalytics)| Returns an [Analytics](./analytics.analytics.md#analytics_interface) instance for the given app. |
21
21
|[initializeAnalytics(app, options)](./analytics.md#initializeanalytics)| Returns an [Analytics](./analytics.analytics.md#analytics_interface) instance for the given app. |
22
22
| <b>function(analyticsInstance...)</b> |
23
+
|[getGoogleAnalyticsClientId(analyticsInstance)](./analytics.md#getgoogleanalyticsclientid)| Retrieves a unique Google Analytics identifier for the web client. See [client\_id](https://developers.google.com/analytics/devguides/collection/ga4/reference/config#client_id)<!---->. |
23
24
|[logEvent(analyticsInstance, eventName, eventParams, options)](./analytics.md#logevent)| Sends a Google Analytics event with given <code>eventParams</code>. This method automatically associates this logged event with this Firebase web app instance on this device.<!---->List of recommended event parameters can be found in [the GA4 reference documentation](https://developers.google.com/gtagjs/reference/ga4-events)<!---->. |
24
25
|[logEvent(analyticsInstance, eventName, eventParams, options)](./analytics.md#logevent)| Sends a Google Analytics event with given <code>eventParams</code>. This method automatically associates this logged event with this Firebase web app instance on this device.<!---->List of recommended event parameters can be found in [the GA4 reference documentation](https://developers.google.com/gtagjs/reference/ga4-events)<!---->. |
25
26
|[logEvent(analyticsInstance, eventName, eventParams, options)](./analytics.md#logevent)| Sends a Google Analytics event with given <code>eventParams</code>. This method automatically associates this logged event with this Firebase web app instance on this device.<!---->See [Track Screenviews](https://firebase.google.com/docs/analytics/screenviews)<!---->. |
Retrieves a unique Google Analytics identifier for the web client. See [client\_id](https://developers.google.com/analytics/devguides/collection/ga4/reference/config#client_id)<!---->.
Sends a Google Analytics event with given `eventParams`<!---->. This method automatically associates this logged event with this Firebase web app instance on this device.
0 commit comments