Segment.identify()

Identify a user by her unique id and a set of associated traits.

Usage

Hover over inputs/exits for more info.

var Segment = require('machinepack-segment');


// Identify a user by her unique id and a set of associated traits.

Segment.identify({

writeKey: 'C3ut91L4284abn2VdaJ2813Zc193042Kl4',

userId: '019mr8mf4r',

traits: {},

integrations: {},

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

writeKey required

The "write key" associated with your Segment account.

'C3ut91L4284abn2VdaJ2813Zc193042Kl4'
userId required

A unique identifier for the user being identified.

'019mr8mf4r'
traits required

A free-form dictionary of traits about the group, like "employees" or "industry".

integrations

A dictionary of Segment integrations to either enable or disable.

Exits

error

An unexpected error occurred.

success

OK.