Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-gtag

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-gtag - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc