The tracking API is only available in connected, integrated, or headless modes.

Note: The JSS tracker API is disabled by default. Consult the tracking documentation to enable it.

Event

Events are defined in /sitecore/system/Settings/Analytics/Page Events

Goal

Goals are defined in /sitecore/system/Marketing Control Panel/Goals

Outcome

Outcomes are defined in /sitecore/system/Marketing Control Panel/Outcomes


Campaign

Campaigns are defined in /sitecore/system/Marketing Control Panel/Campaigns

Page View

Track arbitrary page views for custom routing or offline use. Note that Layout Service tracks page views by default unless tracking=false is passed in its query string.


Batching

The tracking API supports pushing a whole batch of events in a single request. This can be useful for queuing strategies or offline PWA usage.

Interaction Control

Tracking data is not pushed into the xConnect service until your session ends on the Sitecore server. Click this button to instantly end your session and flush the data - great for debugging and testing.

Note: By default anonymous contacts will not be shown in Experience Profile. If your interactions are not showing up in Experience Profile, you may need to enable anonymous contact indexing.