@sitecore-cloudsdk/events/server

Version: 0.5

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:

Name

Description

addEvents

Used as a method by the CloudSDK function to initialize the events package.

pageView

Sends a VIEW event.

identity

Sends an IDENTITY event.

event

Sends a custom event with custom data.

Interfaces

Structure objects using the following interfaces:

Name

Description

EventAttributesInput

Data common to VIEW, IDENTITY, and custom events.

PageViewData

Data for VIEW events.

IdentityData

Data for IDENTITY events.

EventData

Data for custom events.

Types

Populate data requests with objects implementing the following types:

Name

Description

ExtensionData

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

Variables

Name

Description

EVENTS_NAMESPACE

The Cloud SDK and package name.

PACKAGE_NAME

The name of the installed Cloud SDK package.

PACKAGE_VERSION

The version of the installed Cloud SDK package.

PACKAGE_INITIALIZER_METHOD_NAME

The name of the initializer method of the Cloud SDK package.

Do you have some feedback for us?

If you have suggestions for improving this article,