@ninetailed/experience-sdk-nextjs
module via npm or yarn.@ninetailed/
experience-sdk-nextjs
looks like:page(), track(), identify()
events. Ninetailed uses profiles 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.page()
, track()
, and identify()
methods which can be used via the useAnalytics hook or the window object of the browser, for example, in a Tag Manager.useAnalytics
hook provides the event tracking functions inside your React components. This is very handy if you want to send events from your code.referrer
, url
, user-agent
and other properties to be consumed by the API.signup
or registered_for_newsletter
.firstname
, age
or anything you want to personalize the content even more.page()
, track()
and identify()
functions to the window object. That way you can also access them from a Tag Manager. We recommend sending page views directly from the code as soon as the SDK is initialized so the personalizations are not delayed.<Personalize />
component that wraps the component you'd like to personalize. It automatically detects the properties needed from the wrapped component and also applies a variants
property.AnalyticsProvider