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

@vzm/verizon-media-connectid

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vzm/verizon-media-connectid

Sync hashed emails to a Verizon Media ConnectID and other user identifiers

  • 1.2.0
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Verizon Media ConnectID JS Module

Description

The Verizon Media ConnectID is designed to enable ad tech platforms to recognize and match users consistently across the open web. The Verizon Media ConnectID is built on top of Verizon Media's robust and proprietary ID Graph, delivering a higher find rate of audiences on publishers' sites user targeting.

Terms of Use

All use of the Verizon Media ConnectID, associated APIs, code, and scripts, and data are subject to the Verizon Media Master Terms and Conditions here:

https://www.verizonmedia.com/policies/us/en/verizonmedia/terms/advertising/masterterms/masterterms-322/index.html

And Verizon Media ConnectID Addendum here:

https://yahoo.secure.force.com/tnc/tc?id=VMID-Addendum-v1

Advertiser uses are subject to the Verizon Media Pixel and Custom Audience Policy here:

https://www.verizonmedia.com/policies/xw/en/verizonmedia/privacy/enterprise/pixelandcustomaudience/index.html

ALL INTEGRATIONS MUST BE APPROVED AND REGISTERED prior to use by the Verizon Media Account team. Contact your account manager for more information.

Prerequisites

Node.js

Installation

npm install @vzm/verizon-media-connectid

Usage

This module is intended to be run in a browser on the first party domain, typically packaged with an ad tag. This module provides a method named getIds. The interaction between the ad tag and the getIds method are as follows.

  1. Ad tag retrieves an email (raw or hashed) from the page.
  2. Ad tag passes email to the getIds method in this module.
  3. The getIds method returns the locally cached Verizon Media ConnectID associated with that email (if available). Local Storage is used for caching these IDs
  4. The getIds method then calls Verizon Media's Pixel Server to retrieve the Verizon Media ConnectID if it is not available locally.

If a raw email is provided, a SHA-256 hash of the email will be used for syncing and local storage. A raw email is identified by the existence of an "@" character in the value.

The Local Storage key used to cache the ConnectID is "vm-connectid"

Integration

This module includes source files written in ES6 in the src directory as well as transpiled and minified code in the dist directory. Depending on the browsers you are targeting and how your project is set up, you may choose how to import the module.

  • Import the module
    • ES5: import connectId from @vzm/verizon-media-connectid
    • ES6: import connectId from @vzm/verizon-media-connectid/src/connectid
  • Call connectId.getIds(params, callback)
  • The callback function will be called with all available mapped IDs
import connectId from '@vzm/verizon-media-connectid';

// code running on a first party domain ...

const params = {
 pixelId: ..., // publisher specific pixel id
 email: ..., // raw or hashed email
 gdpr: ..., // true if user is under gdpr jurisdiction, otherwise false
 gdpr_consent: ... // gdpr consent string (required if gdpr is true)
};

connectId.getIds(params, ids => {
 // ids is a map of id type to value, for example {connectid: 'abc123'}
 // pass ids.connectid in request to ad server
});

Browser Compatibility

This module is compatible with all major browsers and IE11.

FAQs

Package last updated on 30 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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