Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "vue-gtag", | ||
"description": "Global Site Tag (gtag.js) plugin for Vue", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Matteo Gabriele", |
@@ -11,6 +11,10 @@ declare module 'vue-gtag' { | ||
export interface Event { | ||
event_category: string; | ||
event_label: string; | ||
value: string; | ||
export interface EventParams { | ||
/** string that will appear as the event category */ | ||
event_category?: string; | ||
/** string that will appear as the event label */ | ||
event_label?: string; | ||
/** non-negative integer that will appear as the event value */ | ||
value?: number; | ||
[key: string]: any; | ||
} | ||
@@ -42,3 +46,12 @@ | ||
pageview(pageView: PageView): void; | ||
event(action: string, event: Event): void; | ||
/** | ||
* Send a Google Analytics Event. | ||
* | ||
* @see https://developers.google.com/analytics/devguides/collection/gtagjs/events | ||
* | ||
* @param action string that will appear as the event action in Google Analytics Event reports | ||
* @param eventParams | ||
*/ | ||
event(action: string, eventParams?: EventParams): void; | ||
screenview(screenView: ScreenView): void; | ||
@@ -45,0 +58,0 @@ customMap(map: Dictionary<string>): void; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13886
80