Handlers Sdk

Properties

sdk

sdk: ConvergeSdk


viewContext

viewContext: undefined | ExperienceTrackingViewContext = undefined

Methods

getCart()

getCart(): Promise<undefined | CommerceActivityTrackingEventMetadata>

Returns

Promise<undefined | CommerceActivityTrackingEventMetadata>


getCurrentProduct()

getCurrentProduct(): Promise<undefined | CommerceActivityTrackingEventProductMetadata>

Returns

Promise<undefined | CommerceActivityTrackingEventProductMetadata>


getCurrentSearchContext()

getCurrentSearchContext(): Promise<undefined | SearchActivityTrackingEventMetadata>

Returns

Promise<undefined | SearchActivityTrackingEventMetadata>


getLoggedInUser()

getLoggedInUser(): Promise<undefined | PersonIdentifiers>

Returns

Promise<undefined | PersonIdentifiers>


getViewContext()

getViewContext(): Promise<undefined | ExperienceTrackingViewContext>

Returns

Promise<undefined | ExperienceTrackingViewContext>


setViewContext()

setViewContext(context): void

Parameters

context: ExperienceTrackingViewContext

Returns

void