useIdentify

Returns an identify(userId, traits?) function that sends to all adapters.

import { useIdentify } from "@allem-sdk/analytics";

Usage

const identify = useIdentify();

// After login
identify(user.id, {
  email: user.email,
  plan: "pro",
});