4min

React

Install the sdk with npm

Windows
|

When the sdk has been installed it needs to be initialized with following code.

JS
|

The initialized sdk can be then used to track events

Sending events

After the tracker has been initialized you can start sending events. Data format in the event should be:

JS
|

Events can be sent either by sending the complete JSON object

TypeScript
|

or using the builder message builder

TypeScript
|



Updated 08 Feb 2022
Did this page help?
Yes
No