User function

analytics.identify (#user_id, #attributes)

This function provides support for creating and updating a user.

All requests made by JavaScript client library are processed daily at the start of the day 00:00 GMT for requests received for previous day.

We recommend leveraging our HTTP Server API to create and manage users so that any new account or attribute change is reflected in real-time and there are no delays.

analytics.identify(#user_id, {
attribute_key_1: "value",
attribute_key_2: "value",
...
attribute_key_n: "value"
});

Example

analytics.identify("john.doe@acme.com", {
first_name: "John",
last_name: "Doe",
email: "john.doe@acme.com"
});

For a list of available Attributes, refer to User Resources. Only those fields are allowed which aren't marked as Read-only.