If the user has opted out of tracking, the UID will not be stored or
transmitted. Thus it is safe to call this function regardless of the user’s
tracking preferences.
Uid
required
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Provide a user ID (uid) for targeting. Variadic.
type Uid = {
u?: string; // username
e?: string; // email
p?: string; // phone
};
const user = { email: "hachi@rev.iq" };
reviq.setUid({ e: user.email });
// include country code if possible
const user = { phone: "+1 555-555-5555" };
reviq.setUid({ p: user.phone });
const user = { username: "hachi" };
reviq.setUid({ u: user.username });