UNPKG

ga-4-react

Version:

Simple wrapper of ga4 scripts for React: https://developers.google.com/analytics/devguides/collection/ga4

15 lines (14 loc) 549 B
import React from 'react'; import { GA4Config, GA4ManagerOptionsInterface } from '../models/gtagModels'; export interface GA4WithTrackerComponentInterface { path: string | Location; location?: string | Location; title?: string; gaCode?: string; gaConfig?: GA4Config | object; additionalCode?: Array<string>; timeout?: number; options?: GA4ManagerOptionsInterface; } export declare function withTracker(MyComponent: React.FC<any>): React.FC<GA4WithTrackerComponentInterface>; export default withTracker;