Blog · Tips
How do you collect data from a mobile app?
Contents
In a mobile app, data collection does not go through tags but through an SDK, or else server-to-server, which means you need not integrate one at all. Both routes collect the same data; they do not cost the app, or the team that maintains it, the same.
Take Marc, founder of a vintage ready-to-wear brand. Alongside his website, he has built an app, and he wants to track journeys there the way he tracks them on the web.
The SDK route, and what it costs
SDK stands for Software Development Kit: a component developers build into the app’s code to add a third-party service. In principle, it is convenient.
The problem is not the first SDK, it is the tenth. Marc has to integrate his own to collect data, then almost as many SDKs as he has partners, because each one wants to collect data on its own side. Every addition comes at a price:
- the app’s size and responsiveness, since the work is done on the device;
- redundancy, with several SDKs measuring the same event in three ways that never agree;
- attack surface, as every third-party library brings in code the app’s publisher does not control;
- delay with every test, because testing a new partner means an integration, acceptance testing and a store submission.
That last point has become heavier since 2018. Since 1 May 2024, Apple has required a privacy manifest (opens in a new window) for commonly used third-party SDKs: each library must declare the data it collects, justify the sensitive APIs it uses and be signed, or the submission is rejected. An SDK is no longer just extra weight, it is a declaration to keep up to date.
The server-to-server route: no SDK to integrate
The alternative is to send data from Marc’s servers to his technology partner’s servers, without the partner having to embed anything in the app. At the moment of collection, the platform in turn triggers the other partners’ server-to-server connectors: one entry point, with distribution handled server-side.
Three benefits, which are the three earlier costs turned around:
- data flows stay under control, because they leave from your servers and not from embedded third-party libraries;
- the app stays light, and so more responsive, since collection no longer happens on the device;
- a new partner can be tested without shipping a release, which changes how quickly a marketing department can make decisions.
Server-to-server does not remove the need to collect consent, it moves it: the app collects and passes it on, and a CMP is still required. Your own collection SDK also remains useful when you need events the server does not see, such as a screen viewed without a network call; the Eulerian SDKs exist for these cases, in native iOS and Android as well as Flutter and React.
What has changed since 2018: the identifier
In 2018, mobile tracking relied largely on the device’s advertising identifier. Since iOS 14.5, in April 2021, the IDFA can no longer be read without the user’s explicit consent, which, depending on the panel and the app category, between a third and half of users grant.
The consequence is structural, not technical: reconciling a mobile journey with the rest of the journeys depends on an identifier obtained formally, at purchase, login or sign-up, and not on a device identifier. This is the subject of how to identify an individual online, and it is also what determines mobile attribution.
In short
For Marc, the question is not “SDK or no SDK” but “how many SDKs”. A single collection point, as few third-party libraries as possible, and server-side distribution: that is what keeps the app light, the data flows under control and testing fast.
The app is then just one of the devices in the journey. The other three collection gaps are detailed in the 4 collection gaps in a data lake, and the overall logic in the benefits of centralised data collection.