1. events

@sitecore-cloudsdk/events/server

Version:
Import path@sitecore-cloudsdk/events/browser

The server module of the Cloud SDK events package provides the following functions, interfaces, types, and variables to capture and send events from the server side.

Functions

Work with events using the following functions:

NameDescription
addEventsUsed as a method by the CloudSDK function to initialize the events package.
pageViewSends a VIEW event.
identitySends an IDENTITY event.
eventSends a custom event with custom data.

Interfaces

Structure objects using the following interfaces:

NameDescription
EventAttributesInputData common to VIEW, IDENTITY, and custom events.
PageViewDataData for VIEW events.
IdentityDataData for IDENTITY events.
EventDataData for custom events.

Types

Populate data requests with objects implementing the following types:

NameDescription
ExtensionDataAny custom data to collect about an event in addition to the other attributes provided for the event data.

Variables

NameDescription
EVENTS_NAMESPACEThe Cloud SDK and package name.
PACKAGE_NAMEThe name of the installed Cloud SDK package.
PACKAGE_VERSIONThe version of the installed Cloud SDK package.
PACKAGE_INITIALIZER_METHOD_NAMEThe name of the initializer method of the Cloud SDK package.
If you have suggestions for improving this article, let us know!