Events

Events need to be raised in your app so that Fresh Relevance can track and understand your users behavior.

How to raise events

$TB.hooks.fireEvent can be called to allow Fresh Relevance to know that an event has occurred on your website such as a product browse or cart update. You are able to pass data along to Fresh Relevance such as the product information for a product browse event or the contents of a cart for a cart update event.

Expected Parameters

eventName:string

The name of the event that has occurred, for a list of events available see $TB.hooks.validCallEvents()

data:object

An object containing the data for the event raised, this could be product information, user details or a cart. See the events section below for more information.

options:object

An object containing any additional parameters for the event, additional parameters listed under each event below.

Events

Detailed below is a list of each event and the data structure they expect to receive, your implementation may vary, if so please contact customer support and detail your expected data structure so that we can accommodate these changes.