How to measure Meta and TikTok ads for your app without SDK bloat
Server-side conversion APIs, install referrers and Apple's attribution frameworks let you measure both networks with one small SDK, or none, instead of a stack of ad SDKs.
By SuperMMP, , 4 min read
The usual way to measure ad campaigns is to add each network's SDK to your app. With two networks that means two more dependencies, two sets of start-up work, two consent integrations, two naming schemes for the same events, and, if you also send purchases from your server, the same purchase counted twice.
There is a leaner way. Both Meta and TikTok accept app events from your server, and the signals that tell you where an install came from are available without their SDKs. This guide walks through the pieces.
1. Give each install an ID you control
On first launch, generate a random install ID and keep it in your app's storage. Send it with every event. It is yours, it means nothing outside your app, and it lets you tie a later purchase back to the install it belongs to.
Do not try to recognise devices from their characteristics, such as IP address, model and screen size. That is fingerprinting. Apple does not allow it whether or not the user granted tracking permission, and it is unreliable anyway.
2. Collect the signals that say where an install came from
On Android:
- The Google Play Install Referrer tells your app the referrer string of the Play Store link the person followed. Campaign links you create can carry your own parameters through it.
- For Meta ads, Meta provides an install referrer that your app can read on the device. It is encrypted; you decrypt it with a key from your Meta app settings to learn the campaign.
On iOS:
- SKAdNetwork and AdAttributionKit report installs from ad campaigns in aggregate, with conversion values you set in your app. See our guide to SKAdNetwork and AdAttributionKit.
- When someone arrives through a link you control, such as a web landing page that passes a click ID into your app, you can attribute that install exactly.
- The advertising identifier (IDFA) is available only when the person allowed tracking in the App Tracking Transparency prompt.
On both platforms: record the consent your app collected, and send it with each event.
3. Send conversions from your server
Purchases and subscriptions are best reported from the system that validates them: your backend, after it checks the App Store or Google Play receipt. Both networks have server-side APIs for this:
- Meta Conversions API accepts app events once you have a dataset connected to your app in Meta's Events Manager. The connection matters: events sent to a dataset that is not linked to the app are not used for app campaigns.
- TikTok Events API accepts app events for the TikTok app assets in your advertiser account. TikTok may need to enable server-side app events for your advertiser, so ask early.
Send each event with:
- an event ID that is unique to the real-world event, so the network can drop duplicates if the same purchase also arrives another way;
- the event time, and send promptly: networks reject events that are too old (Meta's limit for app events is seven days);
- the value and currency for purchases;
- the identifiers the person consented to, hashed where the network requires it: e-mail and phone numbers are normalised and hashed with SHA-256 before they leave your server.
When you test, check the API's response: a success status and the count of events received is the real confirmation. Dashboards can lag or not show server-sent app events at all.
4. Keep the app side small
What has to run on the device is short:
- create the install ID;
- read the install referrers on Android;
- update SKAdNetwork conversion values on iOS;
- send install and session events, with consent, to your backend or your measurement service.
Everything else, including attribution, deduplication, retries and delivery to each network, can happen on a server.
5. Decide where attribution happens
Once events arrive from several sources, something has to decide which campaign gets credit for each install and conversion. Apply one rule across networks, for example the last click within seven days, and keep SKAdNetwork results next to it without adding the two together. Without this step, each network keeps claiming the same installs, and your totals stop adding up.
A short checklist
- Random install ID created on first launch
- Consent recorded and sent with every event
- Google Play Install Referrer and Meta's install referrer read on Android
- SKAdNetwork conversion values updated on iOS, with a written schema
- Purchases sent from your server with event IDs, within seven days
- Meta dataset connected to your app; TikTok server-side app events enabled
- One attribution rule applied across networks
Where SuperMMP fits
SuperMMP does the server side of this for you: it attributes each install and purchase, sends Meta and TikTok deduplicated conversions with the identifiers people consented to, receives your SKAdNetwork postbacks, and reports it all in one place. You can send events from a small SDK or straight from your server, for one flat monthly fee. Request early access.