TheDocumentation Index
Fetch the complete documentation index at: https://engage-docs.frigade.com/llms.txt
Use this file to discover all available pages before exploring further.
useUser() hook enables you to add properties and send tracking events to the current user.
About this hook
The hook contains the following methods:track(eventName: string, properties?: Record<string, unknown>)
Promise that sends tracking events for the current user
addProperties(properties: Record<string, unknown>)
Promise that adds properties to the current user
Update the
userID in the top-level Frigade.Provider component to change usersExample use cases:
- Tracking events and adding properties to the current user for using with Targeting
- Wrapping the
trackmethod with your existing tracking/analytics methods
Tracking events example
Adding properties example
userProperties object via the Frigade.Provider component:
Standardized properties
The following standardized properties are automatically added to the user object if provided viaaddProperties:
email- The user’s email addressname- The user’s full namefirstName- The user’s first namelastName- The user’s last nameimageUrl- The user’s profile image URL