diff --git a/src/Blazor.Analytics/GoogleAnalytics/Resources/GoogleAnalyticsInterop.ts b/src/Blazor.Analytics/GoogleAnalytics/Resources/GoogleAnalyticsInterop.ts index 074675a..9581944 100644 --- a/src/Blazor.Analytics/GoogleAnalytics/Resources/GoogleAnalyticsInterop.ts +++ b/src/Blazor.Analytics/GoogleAnalytics/Resources/GoogleAnalyticsInterop.ts @@ -38,17 +38,6 @@ namespace GoogleAnalyticsInterop console.log(`[GTAG][${trackingId}] Navigated: '${href}'`); } - export function trackEvent(trackingId: string, eventName: string, eventValue: string, eventCategory: string): void - { - gtag("event", eventName, { - send_to: trackingId, - value: eventValue, - event_category: eventCategory, - }); - - console.log(`[GTAG][${trackingId}] Event: '${eventName}'`); - } - export function trackEvent(event: string, eventCategory: string, eventLabel: string, eventValue: string) { gtag("event", event, { event_category: eventCategory, event_label: eventLabel, value: eventValue });