identify()methods which can be used via the useAnalytics hook or via the window object of the browser for example in a Tag Manager.
<AutoTracker />is prebuilt.
useAnalyticshook provides the event tracking functions inside your React components. This is very handy if you want to send events from your code.
AnalyticsProviderin your App. Every component using
useAnalyticsneeds to be a child component of the
user-agentand other properties to be consumed by the API.
ageor anything you want to personalize the content even more.
identify()functions to the window object. That way you can also access them from a Tag Manager. We recommend to send pageviews directly from the code as soon as the sdk is initialized so the personalizations are not delayed.