setup
Setup initial properties required for the analytics library.
Call this from the Application class before reporting any event, and again whenever the identity or the bearer token changes.
Parameters
The Application instance of the app.
Who the reported events belong to. Pass UserIdentity.Identified with the marketplace's own identifier whenever one is available, logged in or not, because audience matching resolves it against the marketplace's records. Pass UserIdentity.Unidentified only when there is genuinely no identifier to give.
The bearer token
Deprecated
A blank opaqueUserId silently means "mint an id for me", producing events that never audience-match. Say which you mean: UserIdentity.of(id) if it might be blank, or UserIdentity.Unidentified if you genuinely have none.
Setup initial properties required for the analytics library, Call this from the Application class, before submitting any event, Or when a new opaqueUserId or bearer token has to be used.
Parameters
The Application instance of the app.
The SessionId allows correlating user activity during a session whether or not they are actually logged in.
The bearer token