@sitecore-cloudsdk/events
Version:
The events package is for tracking site visitors’ behavior by capturing VIEW, IDENTITY, FORM, and custom events in real time.
The events package is for tracking site visitors’ behavior by capturing VIEW, IDENTITY, FORM, and custom events in real time.
The events package is preinstalled in JSS Next.js apps. The package's browser module is imported into src/lib/context/sdk/events.ts and initialized, and the tracking functionalities that run automatically are implemented in src/components/CdpPageView.tsx.
Import the package's browser module in other files only if you want to implement additional tracking functionalities. After importing the module, you must initialize it by running the init function.