page()
, track()
, identify()
events. The profile is used internally to calculate your personalizations and render merge tags in your rich text components.Traits
is a json dataset that can be set by you through identify calls. Whenever you send new traits to our system we deeply merge the traits of the user. Traits
are commonly used in merge tags to build inline personalization like const headline = `Hey ${profile.traits.firstname}👋`
.Location
is the last seen location of the user. You would normally use this to merge it into Richtext.useProfile
hook makes it really easy for you to access the profile of the visitor. profile
and the loading
and error
state.