如果用户已选择退出追踪,UID将不会被存储或传输。因此,无论用户的追踪偏好如何,调用此函数均是安全的。
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
必填
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
提供用于定向投放的用户 ID(uid),支持多参数传入。 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 });