UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

9 lines 448 B
import './AnalyticsTypes'; /** * Submits an event to Google Analytics. This is a noop if window.dataLayer is not available, which is possible * if the user has not consented to analytics tracking or their browser blocks trackers. * @param eventName * @param eventData */ export declare function sendAnalyticsEvent(eventName: string, eventData?: Record<string, string | number | boolean>): void; //# sourceMappingURL=sendAnalyticsEvent.d.ts.map