Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeApp GDPR compliance means no SDK reads the device or sends personal data before it has a lawful basis, which for analytics, advertising and attribution usually means consent. Apps differ from websites: SDKs start at launch and device identifiers are personal data, so consent has to gate SDK initialisation, not just data use. Below: an identifier table, two tests per SDK, a consent-gate pattern and a worked inventory.
What you will learn
- Device identifiers such as IDFA, IDFV, Android ad ID and install IDs are personal data; narrower IDs lower risk but still need a basis
- ePrivacy Art. 5(3) applies when an SDK reads the device, so start non-essential SDKs from the consent callback, not at launch
- In the sample, gating removed 12,600 SDK starts for people who declined and kept all 17,400 consented starts
Why is GDPR compliance different for a mobile app?
A website's analytics tag can wait for a cookie banner because nothing has to load before the page shows it. An app is different in three ways that change how GDPR applies:
- SDKs start at launch. Analytics, attribution, advertising and crash SDKs are usually initialised in the first lines of app start-up code, before any screen is drawn. If the consent screen comes after that, the SDKs have already read the device and sent data.
- Device identifiers are personal data. GDPR's definition of personal data includes "an online identifier" (Art. 4(1)), and Recital 30 names identifiers provided by devices, applications and tools. An advertising ID, a vendor ID or an install ID ties events to one device, and usually one person.
- Reading the device is regulated before GDPR even applies. Article 5(3) of the ePrivacy Directive requires consent for "the storing of information, or the gaining of access to information already stored, in the terminal equipment" of a user, unless it is strictly necessary for a service the user asked for (Directive 2002/58/EC). The EDPB's Guidelines 2/2023 (final version adopted 16 October 2024) read that rule broadly, covering SDKs and identifiers, not only cookies.
The core of this guide follows from those three points: in an app, consent has to gate SDK initialisation, not just data use. Collecting first and filtering later does not work, because the access to the device has already happened. The website version of these rules is covered in GDPR-compliant analytics; this page is the app and SDK version.
Which device identifiers count as personal data?
All of them, once they single out a device. What differs is how far they reach and whether the user can reset them, which changes the risk and what the platforms require.
| Identifier | Scope | Reset by user | Platform rule |
|---|---|---|---|
| iOS advertising ID (IDFA) | All apps on the device | Yes | App Tracking Transparency permission required before tracking |
| iOS identifier for vendor (IDFV) | Apps from the same developer on the device | Changes when all that developer's apps are removed | No permission prompt, still personal data |
| Android advertising ID | All apps on the device | Yes; returns zeros after the user opts out of ads personalisation | For ads and profiling use only (Play Console Help) |
| Android ID (SSAID) | One app signing key and user on the device | Changes on factory reset | No prompt, still personal data |
| App-generated install ID | One app install | Reinstall or clearing data | Android's identifier guidance recommends this kind for non-ads analytics |
| Push token | One app install | Changes when the OS rotates it | Needed to deliver notifications the user turned on |
| IP address | The network | Changes often | Personal data under GDPR when it can be linked to a person |
Two rules follow. First, use the narrowest identifier that does the job: product analytics does not need a cross-app advertising ID. Second, a narrower identifier is still personal data, so choosing IDFV over IDFA reduces risk but does not remove the need for a lawful basis.
The App Tracking Transparency prompt is not GDPR consent. Apple's App Store Review Guidelines (5.1.2(i)) require ATT permission before tracking across other companies' apps and sites; GDPR and ePrivacy consent is a separate legal requirement for EU users, with its own wording, purposes and withdrawal. An iOS app serving EU users that uses the IDFA needs both.
Which SDKs need consent before they start?
Sort every SDK by purpose, then apply two tests in order:
- ePrivacy Art. 5(3): does the SDK store or read information on the device? If yes, it needs consent unless it is strictly necessary for something the user explicitly asked for (logging in, paying, receiving a notification they turned on).
- GDPR Art. 6: what is the lawful basis for processing the data afterwards? Consent for analytics, advertising and attribution in most cases; contract for features the user is using; legal obligation for records you must keep.
Typical results:
- Advertising and attribution SDKs: consent (and ATT on iOS when they use the IDFA). No regulator treats ad measurement as strictly necessary.
- Product analytics SDKs: consent in most member states. Some authorities accept narrowly scoped, first-party audience measurement without consent under strict conditions; check your lead authority's guidance before relying on that.
- Crash reporting: debated. It is first-party and protects the service, but it still reads device data. Many teams gate it too, or limit it to stack traces without persistent identifiers.
- Payment, login, push delivery: strictly necessary for what the user requested, so no ePrivacy consent, with contract or the user's request as the GDPR basis.
Health data, location history and anything about children raise the bar further: GDPR Article 9 requires explicit consent for special-category data, and the CNIL's recommendation on mobile applications asks publishers to assess each SDK they embed and to document what it collects.
How do you gate SDK initialisation on consent?
The pattern that works across iOS, Android and cross-platform frameworks:
- Split configuration from start. At launch, register the SDK's configuration only: no network calls, no device reads. Most SDKs have a "delayed start" or "manual init" option; if one does not, do not call its start method at launch.
- Show the consent screen before any non-essential SDK starts. Offer one toggle per purpose (analytics, advertising, attribution), with "accept all" and "reject all" equally easy to reach.
- Start only the SDKs whose purpose was accepted. Call each SDK's start method from the consent callback, not from the app delegate or
Applicationclass. - Store the choice and a receipt. Keep the purposes, the time, the consent text version and the app version, so you can show what the user agreed to.
- Make withdrawal as easy as giving consent. GDPR Art. 7(3) requires it. Put the same toggles in the app's settings screen, and on withdrawal call the SDK's opt-out or stop method so it sends nothing further.
- Ask again when the purposes change. A new SDK or a new purpose needs a new choice; old consent does not stretch to cover it.
Do not show the iOS ATT prompt and treat its answer as GDPR consent, and do not pre-tick toggles. Both are common findings in app reviews.
Worked example: an SDK inventory and what gating changes
Sample data: a shopping app with six SDKs and 10,000 first launches from the EEA in one month. 58% of users accept all purposes on the consent screen; 42% reject or close it.
| SDK | Purpose | Data and identifier it sends | Basis | When it may start |
|---|---|---|---|---|
| Product analytics | Usage reports | Screens, events, app-scoped device ID | Consent | After "analytics" is accepted |
| Advertising | Ad delivery and measurement | Ad requests, advertising ID | Consent, plus ATT on iOS | After "advertising" is accepted |
| Attribution | Which campaign drove the install | Install referrer, device data, advertising ID | Consent | After "attribution" is accepted |
| Crash reporting | Stability | Stack traces, device model, OS version | Check with your DPO; many gate it | Gated, or without a persistent ID |
| Push notifications | Messages the user turned on | Push token | User's request | After the OS notification permission |
| Payments | Checkout | Card or wallet details | Contract | Only at checkout |
The three consent-based SDKs that commonly start at launch are analytics, advertising and attribution. Counting one "start" as one SDK sending data from one device:
- Ungated (all three start at launch): 10,000 devices × 3 SDKs = 30,000 starts before the user made a choice. Of those, 4,200 devices × 3 = 12,600 starts belong to people who then said no.
- Gated (start from the consent callback): 0 starts before a choice. 5,800 devices × 3 = 17,400 starts, all with consent.
The ungated app does not just risk a fine on paper: 12,600 times in one month, a device sent identifiers to a third party for a purpose its owner refused. Gating removes all of them and costs nothing in consented data; the 17,400 consented starts happen either way.
What gating does cost is coverage. Analytics now sees 5,800 of 10,000 new devices, 58%. If you need total counts, the honest options are counting installs from the store consoles (which report aggregates without your SDK) or asking your DPO whether an anonymous, identifier-free measurement mode is acceptable without consent under your authority's reading of Art. 5(3).
SDK starts in one month, ungated vs gated
sample app, 10,000 EEA first launchesHow do you handle data subject requests in an app?
Users can ask for access to their data (Art. 15), erasure (Art. 17) and a portable copy (Art. 20), and you have one month to answer in most cases (Art. 12(3)). Apps add two complications:
- Requests must reach every SDK vendor. Each vendor holding data under your instructions is a processor (Art. 28), so your deletion workflow needs a step per vendor: which identifier it is keyed on, which API or console deletes it, and how long it takes.
- The identifier may be a device, not an account. A user who never logged in can only be found by device ID. Show the app's analytics device ID in a settings or support screen, or delete by it automatically when the user taps "delete my data".
Apple also requires in-app account deletion for any app that supports account creation (App Store Review Guideline 5.1.1(v)), so the deletion path has to exist inside the app anyway; connect it to the SDK deletion steps.
Are App Store privacy labels and Google Play data safety enough?
No. Apple's privacy details, the iOS privacy manifest and Google Play's data safety form are platform disclosures. They are useful as a cross-check, because they list data types collected by each SDK, but they do not establish a lawful basis, collect consent or answer a deletion request. Use them this way:
- Build the labels from your SDK inventory, not the other way round. Every row of the inventory should appear in the labels.
- Diff the labels against each SDK's own documentation on every SDK upgrade. A new version can start collecting a new data type.
- Keep the privacy policy consistent with both. Apple's guideline 5.1.1(i) requires that third parties such as analytics tools and SDKs protect user data as the app's privacy policy says.
Mobile app GDPR checklist
Use the table below as the working checklist. The website-wide items (records of processing, privacy notice, DPIA, breach procedure) are covered in the GDPR compliance checklist; how to decide what customer data to collect at all is covered in customer data collection. If you use a consent management platform, make sure its mobile SDK can delay other SDKs' start, not just record the choice.
| Checklist item | What to record or do | Rule it comes from |
|---|---|---|
| SDK inventory | Every SDK, its vendor, purpose, data types and identifier | GDPR Art. 30 records; CNIL app recommendation |
| Data each SDK sends | Events, device data, identifiers, IP; check on every SDK upgrade | GDPR Art. 5(1)(c) data minimisation |
| Lawful basis per SDK | Consent, contract or legal obligation, written per purpose | GDPR Art. 6 |
| Consent gate before init | Non-essential SDKs start only from the consent callback | ePrivacy Art. 5(3) |
| Withdrawal in settings | Same toggles as the consent screen; call each SDK's opt-out | GDPR Art. 7(3) |
| Retention | Days kept per data type and per vendor | GDPR Art. 5(1)(e) |
| Deletion request flow | One step per vendor, by account and by device ID; answer within one month | GDPR Art. 12, 17, 28 |
| Store labels and privacy policy | Built from the inventory and kept consistent with it | App Store guideline 5.1.1; Play data safety |
Re-run the whole list when you add an SDK, add a purpose or upgrade an SDK major version.
How to set this up in TapCub
The six-SDK shopping app above uses TapCub as its product analytics SDK. Here is how the analytics row of the inventory is handled.
- Initialise in two steps. Every TapCub client SDK (iOS, Android, Flutter, React Native, HarmonyOS) has
preInit, which only stores configuration and binds the app lifecycle: no network calls and no device reads. Call it at launch (on Android, inApplication.onCreate). Callinitfrom your consent callback once analytics is accepted; that is when the SDK fetches its configuration, creates a device ID and starts sending. If your project does not require consent, call both at start-up. Setup per platform: iOS SDK. - Know which identifier it uses. The iOS SDK uses the IDFV as its device ID and does not read the IDFA, so it shows no ATT prompt; the Android SDK uses ANDROID_ID and does not read IMEI, MAC, OAID or the advertising ID. The iOS package ships a privacy manifest that declares device ID, product interaction, crash and performance data, with tracking set to false. A persistent device ID and
logintake effect only when the project is in identified mode (collection tier 3); in anonymous mode the SDK sends events without writing a device ID. - Wire withdrawal to opt-out. When the user turns analytics off in your settings screen, call
optOut;optInresumes. TapCub does not draw the consent screen itself; your app or consent platform does, then calls these methods. - Handle deletion in Configuration › Privacy center. Data subject requests cover access, erasure, restriction and portability, and the subject can be a device, a login, an email or a person, so a user who never logged in can still be found by device ID. Erasure runs after a cooling-off period and can be cancelled before it runs. See handle data subject requests. Expired rows are deleted on a schedule, and retention cannot exceed your plan's cap.
- Check before release. Open App analytics › Realtime with a test device: nothing should arrive while the consent screen is open or after you reject analytics; after you accept, an
$app_startevent confirms the SDK started.
TapCub covers the analytics row only. The advertising, attribution and crash SDKs of other vendors need their own gates and deletion steps.
FAQ
Does GDPR apply to my mobile app if my company is outside the EU?
Yes, if the app offers goods or services to people in the EU or monitors their behaviour there (GDPR Art. 3(2)). Analytics that profiles how EU users use the app counts as monitoring. You may also need an EU representative under Art. 27.
Is a device ID personal data under GDPR?
Yes. GDPR counts online identifiers as personal data when they can single out a person, and device identifiers such as the IDFA, IDFV, Android advertising ID and app install IDs do that. A resettable or app-scoped ID lowers the risk but still needs a lawful basis.
Do I need consent for analytics SDKs in my app?
In most EU countries, yes, because the SDK reads or stores information on the device (ePrivacy Art. 5(3)) for a purpose that is not strictly necessary for what the user asked. Some regulators allow narrowly scoped first-party measurement without consent; check your lead authority before relying on it.
Is the iOS App Tracking Transparency prompt enough for GDPR consent?
No. ATT is Apple's permission for tracking across other companies' apps and sites. GDPR and ePrivacy consent is a separate legal requirement with its own purposes, wording and withdrawal. EU users of an app that uses the IDFA need both, and an app that never tracks still needs GDPR consent for non-essential SDKs.
What does a GDPR-compliant mobile app need before launch?
An SDK inventory, a lawful basis for each SDK, a consent screen that starts SDKs only after the matching purpose is accepted, a withdrawal toggle in settings, a deletion flow that reaches every vendor, store privacy labels built from the inventory and a privacy policy that matches all of it.
Sources
- Regulation (EU) 2016/679 (General Data Protection Regulation), EUR-Lex: Articles 3, 4(1), 6, 7(3), 9, 12, 15, 17, 20, 28 and Recital 30.
- Directive 2002/58/EC (ePrivacy Directive), EUR-Lex: Article 5(3).
- European Data Protection Board, Guidelines 2/2023 on Technical Scope of Art. 5(3) of ePrivacy Directive, version 2.0 adopted 16 October 2024.
- CNIL, Recommendation on mobile applications (English version, PDF).
- Apple, App Store Review Guidelines, sections 5.1.1 and 5.1.2.
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Data Analyst
Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.



