{DATA_PLATFORM_URL}
and the X-API-Key
header value to use.TreasureProvider
components, the useTreasure
hook will return allow you to use the trackCustomEvent
method to interact with Darkmatter API.
AnalyticsOptions
object to the TreasureProvider
component. These are the same parameters that you would pass to the core TDK’s AnalyticsManager
class.
trackCustomEvent
method exposed by the useTreasure
hook.
trackCustomEvent
method accepts an AnalyticsEvent
object with the following properties:
trackCustomEvent
method, the React TDK’s
trackCustomEvent
only requires a userId
or address
to be passed in if a
user hasn’t been logged in.