Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
isc30 authored Sep 21, 2020
1 parent 78d9752 commit 36b752f
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 36b752f

Please sign in to comment.