UNPKG

voluptasmollitia

Version:
37 lines (25 loc) 1.67 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/analytics](./analytics.md) &gt; [logEvent](./analytics.logevent.md) ## logEvent() function Sends analytics event with given `eventParams`<!-- -->. 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 gtag.js reference documentation](https://developers.google.com/gtagjs/reference/event)<!-- -->. <b>Signature:</b> ```typescript export declare function logEvent(analyticsInstance: Analytics, eventName: 'add_payment_info', eventParams?: { coupon?: EventParams['coupon']; currency?: EventParams['currency']; items?: EventParams['items']; payment_type?: EventParams['payment_type']; value?: EventParams['value']; [key: string]: any; }, options?: AnalyticsCallOptions): void; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | analyticsInstance | [Analytics](./analytics.analytics.md) | | | eventName | 'add\_payment\_info' | | | eventParams | { coupon?: [EventParams](./analytics.eventparams.md)<!-- -->\['coupon'\]; currency?: [EventParams](./analytics.eventparams.md)<!-- -->\['currency'\]; items?: [EventParams](./analytics.eventparams.md)<!-- -->\['items'\]; payment\_type?: [EventParams](./analytics.eventparams.md)<!-- -->\['payment\_type'\]; value?: [EventParams](./analytics.eventparams.md)<!-- -->\['value'\]; \[key: string\]: any; } | | | options | [AnalyticsCallOptions](./analytics.analyticscalloptions.md) | | <b>Returns:</b> void