INNER CODE UNIT · TypeScript

addTagsToUser

Flaque/quirk · src/id/index.ts:48

export async function addTagsToUser(tags: { [key: string]: string }) {
  stats.identifyWithTraits(await getUserID(), tags);
}

export async function getUserID(): Promise<string> {
  const id = await idstore.getUserID();
  if (!id) {
    await identify();
    return idstore.getUserID();
  }

  return id;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…