New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@amplitude/plugin-global-user-properties

Package Overview
Dependencies
Maintainers
6
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/plugin-global-user-properties

An event enrichment plugin that adds the experimental global user properties field to events

latest
Source
npmnpm
Version
1.2.138
Version published
Weekly downloads
213
-38.62%
Maintainers
6
Weekly downloads
 
Created
Source


@amplitude/plugin-global-user-properties

Official SDK plugin for adding global user properties to events

Installation

This package is published on NPM registry and is available to be installed using npm and yarn.

# npm
npm install @amplitude/plugin-global-user-properties

# yarn
yarn add @amplitude/plugin-global-user-properties

Usage

This plugin works on top of the Amplitude SDK and sends user properties as global user properties, a beta feature for that allows projects to share user properties (i.e. user properties can become "global" across multiple projects).

To use this plugin, you need to install @amplitude/plugin-global-user-properties v1.0.0` or later.

1. Import Amplitude packages

  • @amplitude/plugin-global-user-properties
import * as Amplitude from '@amplitude/analytics-browser'
import { globalUserPropertiesPlugin } from '@amplitude/plugin-global-user-properties';

2. Instantiate page view plugin

The plugin accepts an optional parameter of type Object to configure the plugin based on your use case.

const globalUserPropertiesPlugin = globalUserPropertiesPlugin({
  shouldKeepOriginalUserProperties: true,
});

Options

NameTypeDefaultDescription
shouldKeepOriginalUserPropertiesbooleanfalseUse this option if you want the user properties to be sent along with the global user properties. Since global user properties do not appear in Data yet, this would allow indirect governance (by observing the same properties as regular user properties).

3. Install plugin to Amplitude SDK

amplitude.add(globalUserPropertiesPlugin);

4. Initialize Amplitude SDK

amplitude.init('API_KEY');

FAQs

Package last updated on 09 Oct 2026

Related posts