When using our services to track page views and events, you first have to consider which of the two mentioned methods are best suited for you and your use case. In the following we will first discuss the main differences between the two, so you can decide which one to use.
The biggest difference between clientside and serverside API is obviously that the Clientside API is loaded in on the browser of the visitors. In contrary to the Serverside API where you implement your own clientside code that sends the needed information to your backend first, and from there you forward the information to our service by calling our REST API. We have detailed guides for both of these methods linked down below.
The pros of the Clientside API are as follows:
The cons are:
The pros of the Serverside API are as follows:
The cons are: