@automattic/calypso-analytics
Advanced tools
Comparing version 1.0.0-alpha.2 to 1.1.0
"use strict"; | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getGenericSuperPropsGetter = exports.recordTracksPageViewWithPageParams = exports.recordTracksPageView = exports.recordTracksEvent = exports.identifyUser = exports.initializeAnalytics = exports.getTracksAnonymousUserId = exports.analyticsEvents = exports.pushEventToTracksQueue = exports.getTracksLoadPromise = void 0; | ||
exports.getGenericSuperPropsGetter = exports.recordTracksPageViewWithPageParams = exports.recordTracksPageView = exports.recordTracksEvent = exports.signalUserFromAnotherProduct = exports.identifyUser = exports.initializeAnalytics = exports.getTracksAnonymousUserId = exports.analyticsEvents = exports.pushEventToTracksQueue = exports.getTracksLoadPromise = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -155,2 +155,12 @@ const events_1 = require("events"); | ||
exports.identifyUser = identifyUser; | ||
/** | ||
* For tracking users between our products, generally passing the id via a request parameter. | ||
* | ||
* Use 'anon' for userIdType for anonymous users. | ||
*/ | ||
function signalUserFromAnotherProduct(userId, userIdType) { | ||
(0, debug_1.default)('Tracks signalUserFromAnotherProduct.', userId, userIdType); | ||
pushEventToTracksQueue(['signalAliasUserGeneral', userId, userIdType]); | ||
} | ||
exports.signalUserFromAnotherProduct = signalUserFromAnotherProduct; | ||
function recordTracksEvent(eventName, eventProperties) { | ||
@@ -157,0 +167,0 @@ eventProperties = eventProperties || {}; |
@@ -146,2 +146,11 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
} | ||
/** | ||
* For tracking users between our products, generally passing the id via a request parameter. | ||
* | ||
* Use 'anon' for userIdType for anonymous users. | ||
*/ | ||
export function signalUserFromAnotherProduct(userId, userIdType) { | ||
debug('Tracks signalUserFromAnotherProduct.', userId, userIdType); | ||
pushEventToTracksQueue(['signalAliasUserGeneral', userId, userIdType]); | ||
} | ||
export function recordTracksEvent(eventName, eventProperties) { | ||
@@ -148,0 +157,0 @@ eventProperties = eventProperties || {}; |
@@ -22,2 +22,8 @@ /// <reference types="node" /> | ||
export declare function identifyUser(userData: any): any; | ||
/** | ||
* For tracking users between our products, generally passing the id via a request parameter. | ||
* | ||
* Use 'anon' for userIdType for anonymous users. | ||
*/ | ||
export declare function signalUserFromAnotherProduct(userId: string, userIdType: string): any; | ||
export declare function recordTracksEvent(eventName: string, eventProperties?: any): void; | ||
@@ -24,0 +30,0 @@ export declare function recordTracksPageView(urlPath: string, params: any): void; |
{ | ||
"name": "@automattic/calypso-analytics", | ||
"version": "1.0.0-alpha.2", | ||
"version": "1.1.0", | ||
"description": "Automattic Analytics.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Automattic/wp-calypso", |
@@ -177,2 +177,12 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
/** | ||
* For tracking users between our products, generally passing the id via a request parameter. | ||
* | ||
* Use 'anon' for userIdType for anonymous users. | ||
*/ | ||
export function signalUserFromAnotherProduct( userId: string, userIdType: string ): any { | ||
debug( 'Tracks signalUserFromAnotherProduct.', userId, userIdType ); | ||
pushEventToTracksQueue( [ 'signalAliasUserGeneral', userId, userIdType ] ); | ||
} | ||
export function recordTracksEvent( eventName: string, eventProperties?: any ) { | ||
@@ -179,0 +189,0 @@ eventProperties = eventProperties || {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
143152
1470
0
0