Socket
Socket
Sign inDemoInstall

vue-gtag

Package Overview
Dependencies
0
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.2.2

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc