@types/google.analytics
Advanced tools
Comparing version 0.0.42 to 0.0.43
@@ -22,3 +22,3 @@ // Type definitions for Google Analytics (Classic and Universal) | ||
interface GoogleAnalyticsCode { | ||
push(commandArray: Array<string|boolean|number>): void; | ||
push(commandArray: Array<string | boolean | number>): void; | ||
push(func: Function): void; | ||
@@ -44,3 +44,3 @@ } | ||
// https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#hitType | ||
type HitType = 'pageview' | 'screenview' | 'event' | 'transaction' | 'item' | 'social' | 'exception' | 'timing'; | ||
type HitType = "pageview" | "screenview" | "event" | "transaction" | "item" | "social" | "exception" | "timing"; | ||
@@ -552,4 +552,4 @@ // https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference | ||
( | ||
command: 'send', | ||
hitType: 'event', | ||
command: "send", | ||
hitType: "event", | ||
eventCategory: string, | ||
@@ -559,59 +559,76 @@ eventAction: string, | ||
eventValue?: number, | ||
fieldsObject?: FieldsObject): void; | ||
fieldsObject?: FieldsObject, | ||
): void; | ||
( | ||
command: 'send', | ||
hitType: 'event', | ||
command: "send", | ||
hitType: "event", | ||
fieldsObject: { | ||
eventCategory: string, | ||
eventAction: string, | ||
eventLabel?: string | undefined, | ||
eventValue?: number | undefined, | ||
nonInteraction?: boolean | undefined | ||
}): void; | ||
eventCategory: string; | ||
eventAction: string; | ||
eventLabel?: string | undefined; | ||
eventValue?: number | undefined; | ||
nonInteraction?: boolean | undefined; | ||
}, | ||
): void; | ||
( | ||
command: 'send', | ||
command: "send", | ||
fieldsObject: { | ||
hitType: HitType, // 'event' | ||
eventCategory: string, | ||
eventAction: string, | ||
eventLabel?: string | undefined, | ||
eventValue?: number | undefined, | ||
nonInteraction?: boolean | undefined | ||
}): void; | ||
(command: 'send', hitType: 'pageview', page: string): void; | ||
hitType: HitType; // 'event' | ||
eventCategory: string; | ||
eventAction: string; | ||
eventLabel?: string | undefined; | ||
eventValue?: number | undefined; | ||
nonInteraction?: boolean | undefined; | ||
}, | ||
): void; | ||
(command: "send", hitType: "pageview", page: string): void; | ||
( | ||
command: 'send', | ||
hitType: 'social', | ||
command: "send", | ||
hitType: "social", | ||
socialNetwork: string, | ||
socialAction: string, | ||
socialTarget: string): void; | ||
socialTarget: string, | ||
): void; | ||
( | ||
command: 'send', | ||
hitType: 'social', | ||
command: "send", | ||
hitType: "social", | ||
fieldsObject: { | ||
socialNetwork: string, | ||
socialAction: string, | ||
socialTarget: string | ||
}): void; | ||
socialNetwork: string; | ||
socialAction: string; | ||
socialTarget: string; | ||
}, | ||
): void; | ||
( | ||
command: 'send', | ||
hitType: 'timing', | ||
command: "send", | ||
hitType: "timing", | ||
timingCategory: string, | ||
timingVar: string, | ||
timingValue: number): void; | ||
timingValue: number, | ||
): void; | ||
( | ||
command: 'send', | ||
hitType: 'timing', | ||
command: "send", | ||
hitType: "timing", | ||
fieldsObject: { | ||
timingCategory: string, | ||
timingVar: string, | ||
timingValue: number | ||
}): void; | ||
(command: 'send', fieldsObject: FieldsObject): void; | ||
timingCategory: string; | ||
timingVar: string; | ||
timingValue: number; | ||
}, | ||
): void; | ||
(command: "send", fieldsObject: FieldsObject): void; | ||
(command: string, hitType: HitType, ...fields: any[]): void; | ||
(command: 'require', pluginName: string, pluginOptions?: any): void; | ||
(command: 'provide', pluginName: string, pluginConstructor: (tracker: Tracker, pluginOptions?: Object) => void): void; | ||
(command: "require", pluginName: string, pluginOptions?: any): void; | ||
( | ||
command: "provide", | ||
pluginName: string, | ||
pluginConstructor: (tracker: Tracker, pluginOptions?: Object) => void, | ||
): void; | ||
(command: 'create', trackingId: string, cookieDomain?: string, name?: string, fieldsObject?: FieldsObject): void; | ||
(command: 'remove'): void; | ||
( | ||
command: "create", | ||
trackingId: string, | ||
cookieDomain?: string, | ||
name?: string, | ||
fieldsObject?: FieldsObject, | ||
): void; | ||
(command: "remove"): void; | ||
@@ -618,0 +635,0 @@ (command: string, ...fields: any[]): void; |
{ | ||
"name": "@types/google.analytics", | ||
"version": "0.0.42", | ||
"version": "0.0.43", | ||
"description": "TypeScript definitions for Google Analytics (Classic and Universal)", | ||
@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google.analytics", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b1097c3585aa2a0ae75fc492da640b3f7a77a36527c6a3685b7fa6aae567c1c1", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "111b0a6e6e1a9bf7d7ea121771fc373a2b27c276a14afa0ed1b97d74dd9b3b5c", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 20:33:06 GMT | ||
* Last updated: Wed, 20 Sep 2023 17:08:03 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `Tracker`, `_gaq`, `_gat`, `ga`, `gaClassic` |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30742
644
0