This documentation covers how to track your customer’s actions and how you can use our API to squeeze all the juice of the platform.
The JS library for tracking is asynchronous by default so it doesn’t impact the performance of your site. On the other hand, it’s limited in the type of events you can send and also in the amount of data you can attach to them.
The REST API is more flexible and has support for all event types. You can also add more info to the events because there are less technical limitations. The possible downside is that if your technical team is not very proficient with asynchronous programming it can affect the performance of the site. You shouldn’t block the site rendering to wait for a third party service response.
We recommend you to have a look to both systems and decide which one is better for every event type.