Sending events using the Engage SDK
Using the Engage SDK, you can collect and send behavioral data to Sitecore CDP in real time. The behavioral data includes, for example, the user's page views, clicks, searches, and identifiers as they register or log in.
To collect and send behavioral data in real time, you send events to Sitecore CDP using either client-side tracking or server-side tracking. Using the Engage SDK script, you can implement client-side tracking. Using the Engage SDK package, you can implement both client-side tracking and server-side tracking.
You can send the following events:
-
VIEW event using the
Engage.pageView()
function (client-side tracking) or theEngageServer.pageView()
function (server-side tracking).The VIEW event captures the user's action of viewing a page in your app.
-
IDENTITY event using the
Engage.identity()
function (client-side tracking) or theEngageServer.identity()
function (server-side tracking).The IDENTITY event can capture, for example, names, email addresses, and phone numbers.
-
Custom event using the
Engage.event()
function (client-side tracking) or theEngageServer.event()
function (server-side tracking).You can use custom events to capture any behavior of your choice, for example, clicks and searches.
To collect and send transactional data about a user's cart activity and orders, see sending orders.