Socket
Socket
Sign inDemoInstall

@automattic/calypso-analytics

Package Overview
Dependencies
Maintainers
43
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automattic/calypso-analytics - npm Package Compare versions

Comparing version 1.0.0-alpha.2 to 1.1.0

12

dist/cjs/tracks.js
"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;

2

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

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