Page View/Event Basics

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. 

We highly recommend using the Backend API if it is possible for your use case, due to its accuracy.

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:

  • Easy and fast setup
  • No backend access needed

The cons are:

  • Easily blockable by visitors
  • Tends to be more inaccurate (just as inaccurate as any other client side tracking would be)

Setup Clientside API

Read more

The pros of the Serverside API are as follows:

  • Not blockable
  • Very accurate

The cons are:

  • Setup is a little more sophisticated
  • You need access to backend code (Creating a backend endpoint that you can call from your frontend.)

Setup Serverside API

Read more
Keep in mind that the Backend API is meant for advanced technical users or software developers.

Clientside Methods

Read more

Clientside Page View

Read more

Clientside Event

Read more

Serverside Endpoints

Read more

Serverside Page View

Read more

Serverside Event

Read more