User

Link Streply events to your app users' information.

You can associate all events that you send to Streply with the users of your application. To do this, call the Streply/User ID method before sending the events.

The user ID is a string with which you associate the user from the events with the users of your database. This could be, for example, a HASH or an email address.

Streply\User('joey@friends.com');

Optionally, you can add user name information as a second parameter.

Streply\User('joey@friends.com', 'Joey Tribbiani');

Additional information

As a 3rd parameter, you can add an array with additional information about the user that is important to you (e.g. date of registration).

Streply\User('joey@friends.com', 'Joey Tribbiani', [
    'createdAt' => '2022-11-12 14:30:55'
]);