Semantic Events

Introduction

When sending Events into Fanplayr 360 any value can be used for an Event name (Custom Event), but if you use one of our supported Semantic Events it will add extra automatic functionality to Insights and Profiles.

Any Event supports both Custom and Semantic Attributes, but many Semantic Events require specific Semantic Attributes to support Fanplayr 360 features.

Understanding Event Documentation

Each Semantic Event is documenated with:

  • A description

  • Links to any Semantic Attributes used

  • Interface Tab: A TypeScript style definition of the Event

  • JavaScript API Tab: An example of how to call this event from JS

  • Custom API Tab: An example of the message structure when using the Custom API

Custom API examples include <EVENT_MESSAGE_PROPERTIES>. This represents the common properties that should be sent along with each message.

Example

interface Event {
    event: 'EVENT_NAME',
    properties: {
        customAttribute: string
        $product: Product
    } 
}

Semantic Events

Last updated