Server-side tracking with Matomo: when it pays off

Server-side tracking brings control and events from the back end, but it costs operations and coordination. How to tell whether it pays off for you.

Server-side tracking sounds like the next mandatory step. For some websites it is, for many it is not. Here is a sober look at what it brings, what it costs and how to tell whether it pays off for you.

What changes

With classic tracking the browser sends every measurement directly to Matomo. With server-side tracking, measurements come from a server: from your back end, from an app or from a server-side platform such as the server-side Google Tag Manager or JENTIS, which receives data, processes it and passes it on.

When it pays off and when it does not

Pays off

  • Events only the server knows about Incoming payments, cancellations, signed contracts or the switch from a trial to a paid plan.
  • Several recipients Matomo, Google Ads, Meta and LinkedIn receive the same conversions, one central place keeps track.
  • Apps and your own applications Matomo's Tracking API and SDKs, for example for PHP, Java, iOS and Android.
  • Fewer scripts in the browser Every ad tag less is one source of errors and one data leak less.
  • Data from other sources Server logs, Search Console or your own systems via imports and pipelines.

Rather not

  • Simple websites Pageviews and a few goals, no ad platforms: Matomo's tracking code is enough.
  • As a way around consent What matters is which data is processed and where it goes, not where the code runs.
  • Without someone to look after it A server that receives data needs updates, monitoring and someone who notices failures.

Three routes for Matomo

Route Fits when Recipients
Tracking API and SDKs events come from your back end, an app or your own software Matomo
sGTM, Stape or JENTIS several platforms should receive the same data Matomo and ad platforms
Feinwerk Conversions API for Matomo goals and orders are already measured in Matomo Google Ads, Meta, Microsoft Ads, LinkedIn, X and custom webhooks

The direct route via the Tracking API is the leanest if Matomo is the only recipient. The server-side Google Tag Manager, self-hosted or hosted at Stape, and JENTIS pay off with several recipients. With the Feinwerk Conversions API plugin from our sister brand Feinwerk, goals and orders that Matomo measures anyway are sent server-side to ad platforms, without an ad tag on the website.

A simplified decision in three questions. In practice, systems, privacy and operations come into play, but it points in the right direction.

What matters in practice

  • Hit the right visit. For a server event to belong to the right visit, the browser passes on Matomo’s visitor ID, or you use your own user ID without real names.
  • Do not count twice. If the browser measures an order and the server measures the same one, it counts twice. Unique order numbers and a clear rule on who measures what prevent that.
  • Take over IP address and device. Without further details, Matomo sees the server’s IP address and browser, so location and device are wrong. The Tracking API can take both over from the visit (parameters cip and ua, cip only with a token). Matomo’s IP shortening then applies as usual.
  • Compare and monitor. In the first weeks, browser and server measurement run in parallel and are compared. After that, monitoring alerts you when data stops arriving.

Conclusion

Server-side tracking pays off when important events are only known to the server or several platforms need the same data. For a simple website it is effort without return. Which route suits you depends on your goals and systems. More under Server-side tracking.

Questions about your setup?

In an intro call we'll look at your situation together.

Book an intro call

Newsletter

Matomo know-how, once a month.

Practical tips on tracking, privacy settings and performance, plus notes on important Matomo updates. No spam, unsubscribe any time.