> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkrunner.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Data the SDK collects

Source: https://docs.linkrunner.io/sdk/data-collection

What each Linkrunner SDK sends to Linkrunner, how to turn parts of it off, and how to answer the Google Play Data safety form and Apple's App Privacy questions.

Every app that ships the Linkrunner SDK has to declare its data collection on Google Play and the App Store. Use this page to fill in Linkrunner's part of those forms. Add what your app and your other SDKs collect before you submit.

This page describes Android SDK 5.0.0 and iOS SDK 5.0.0, and the Web SDK as of November 2026. [Privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) needs Android SDK 5.1.0 and iOS SDK 5.1.0.

## How the SDKs fit together

- The **Android** and **iOS** SDKs collect the device data.
- The **React Native, Flutter, Expo, Capacitor, Cordova and Unity** SDKs run the native Android and iOS SDKs underneath (Unity on iOS through the bridge in the [Unity guide](https://docs.linkrunner.io/sdk/unity)). They do not collect any device data of their own, so the Android and iOS tables below apply to them. The only extra values they send are the wrapper's name and version (Android only).
- The **Web SDK** is separate. See [Web](https://docs.linkrunner.io/sdk/data-collection#web).

All SDKs send data to `api.linkrunner.io` over HTTPS. The Web SDK can instead use your own subdomain if you set up [first-party collection](https://docs.linkrunner.io/sdk/web#first-party-collection). Linkrunner's servers also see the public IP address of every request, as any server does.

## Android

The SDK sends this device data with the `init` call, and again with `signup`, deep link handling and `getAttributionData`. Other calls (events, payments, push token) send no device data, only the install ID and the data of that call.

| Field | What it is | Why Linkrunner needs it | Can you turn it off? |
| --- | --- | --- | --- |
| `install_instance_id` | A random ID the SDK creates on first launch and stores in your app | Ties all requests from one install together | No |
| `device_id` | The Android ID (`Settings.Secure.ANDROID_ID`) | Recognises the device when no advertising ID is available | Yes, with [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode). The field is then sent empty |
| `gaid` | Google Advertising ID. Empty when the user deleted it or opted out of ads personalisation | Matches installs to ad clicks on Google, Meta and other networks | Yes, see [Turn off collection](https://docs.linkrunner.io/sdk/data-collection#turn-off-collection) |
| `limit_ad_tracking` | Whether the user opted out of ads personalisation | Tells Google how it may use the conversion | Yes, together with `gaid` |
| `app_set_id`, `app_set_id_scope` | Google's App Set ID and its scope | Fallback ID for Google Ads when there is no advertising ID | Yes, together with `gaid` |
| `install_ref` and the other install referrer fields | Google Play Install Referrer: the referrer string, the click and install timestamps (device and server time), and the installer version | Attributes the install to the link or ad that led to it | No |
| `meta_install_ref` | Meta's install referrer from the Facebook, Instagram or Facebook Lite app, when one exists | Attributes installs from Meta ads | Yes, with [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) |
| `meta_anonymous_id` | The Meta (Facebook) SDK's anonymous app ID, read from the Meta SDK's own storage. Only present when your app bundles the Meta SDK | Lets Meta match the events Linkrunner sends it to the device its own SDK already knows. Sent only to Meta | Yes, see [Turn off collection](https://docs.linkrunner.io/sdk/data-collection#turn-off-collection), or use [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) |
| `brand`, `manufacturer`, `device_model`, `device_name` | Device make and model. `device_name` is make plus model, not the name the user gave the phone | Attribution matching and reporting | No |
| `system_version` | Android version | Reporting | No |
| `user_agent` | The device's default WebView user agent | Matches web clicks to installs | No |
| `application_name`, `bundle_id`, `app_version`, `version`, `build_number` | Your app's name, package name and version | Reporting by app version | No |
| `package_version`, `platform` | The SDK version and which SDK sent the request (for example `FLUTTER`) | Support and debugging | No |
| `device_ip` | The IP address of the device's network connection. On Wi-Fi this is usually a private local address | Attribution matching | Yes, with [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) |
| `carrier` | Mobile network operator name | Reporting | Yes, with [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) |
| `connectivity` | Wi-Fi, mobile network or Ethernet | Reporting | No |
| `country`, `language`, `locale` | From the device's language and region settings, not from GPS | Reporting, and required by Google's App Conversion API | No |
| `consent` | The consent values you pass with `setConsent` | Sent to Google Ads with each conversion | Only sent when you set it |

The SDK declares the `INTERNET`, `ACCESS_NETWORK_STATE` and `com.google.android.gms.permission.AD_ID` permissions. It also declares `<queries>` entries for the Facebook, Instagram and Facebook Lite apps, only to read Meta's install referrer from them. It does not read location, contacts, files, or the list of installed apps.

## iOS

The SDK sends this device data with most requests, including `initialize`, `signup`, events and payments. `setCustomerUserId`, `setPushToken` and `setAdditionalData` send no device data.

| Field | What it is | Why Linkrunner needs it | Can you turn it off? |
| --- | --- | --- | --- |
| `install_instance_id` | A random ID the SDK creates on first launch and stores in your app | Ties all requests from one install together | No |
| `idfv` | Identifier for Vendor | Recognises the device across your apps | Yes, with [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) |
| `idfa` | Identifier for Advertisers. Only sent when the user allowed tracking in the App Tracking Transparency (ATT) prompt | Matches installs to ad clicks | Yes, pass `disableIdfa: true` to `initialize`, or use [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) |
| `att_status` | The user's ATT answer | Tells ad networks whether IDFA-based matching is allowed | No |
| `adservices_attribution_token` | Apple's AdServices token | Attributes installs from Apple Search Ads | No |
| `odm_info` | A value from Google's on-device conversion SDK. Only sent if your app includes that SDK | Attributes iOS installs from Google Ads | Remove Google's SDK, or use [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) |
| `meta_anonymous_id` | The Meta (Facebook) SDK's anonymous app ID, read from the Meta SDK's own storage. Only present when your app bundles the Meta SDK | Lets Meta match the events Linkrunner sends it to the device its own SDK already knows. Sent only to Meta | Yes, see [Turn off collection](https://docs.linkrunner.io/sdk/data-collection#turn-off-collection), or use [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) |
| `device`, `device_model`, `device_name`, `brand`, `manufacturer` | Device type and hardware model. On iOS 15, `device_name` is the name the user gave the phone (for example "Mia's iPhone"). On iOS 16 and later Apple returns a generic name such as "iPhone" | Attribution matching and reporting | [Privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) sends the generic model instead of the name |
| `system_version` | iOS version | Reporting | No |
| `device_display` | Screen width, height and scale | Attribution matching | No |
| `bundle_id`, `version`, `build_number`, `package_version` | Your app's bundle ID and version, and the SDK version | Reporting by app version | No |
| `user_agent` | A string the SDK builds from your app version, the device model and the iOS version | Attribution matching | No |
| `connectivity` | Wi-Fi, cellular or wired | Reporting | No |
| `locale`, `language`, `country`, `timezone`, `timezone_offset` | From the device's language, region and time zone settings, not from GPS | Reporting | No |
| `first_open_timestamp`, `time_since_app_install` | When the SDK first ran in your app, and the time since then | Attribution windows | No |
| `consent` | The consent values you pass with `setConsent`, or that the SDK reads from your IAB TCF consent tool when you call `enableTCFConsentCollection` (iOS and React Native) | Sent to Google Ads with each conversion | Only sent when you set it |

> **Warning:**
>
> If you don't pass `disableIdfa: true` or turn on [privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode), the SDK asks for tracking permission (Apple's ATT prompt) during `initialize`, or a later call, while the user hasn't answered it yet. To choose when the prompt appears, show it yourself before you call `initialize`. You still need `NSUserTrackingUsageDescription` in `Info.plist`.

## Data your app passes in

The SDK only sends user details that your code gives it.

| Call | What it sends |
| --- | --- |
| `signup`, `setUserData` | Your user ID, plus name, email and phone if you include them. Also optional IDs from analytics tools (Mixpanel, Amplitude, PostHog, Braze, Google Analytics, Netcore, MoEngage), the user's sign-up date and whether they are a new user |
| `setCustomerUserId` | Your user ID |
| `trackEvent` | The event name and the event data you pass. For payments: amount, currency, payment ID and status |
| `setPushToken` | The push notification token, used for uninstall tracking |
| `setAdditionalData` | Your CleverTap ID |
| `handleDeeplink` | The deep link URL that opened your app |

Don't put names, emails, phone numbers or other personal details in event data. Use the user fields in `signup` instead.

### PII hashing

Call `enablePIIHashing(true)` to hash **name, email and phone** with SHA-256 on the device, so Linkrunner never receives them in plain text. Your user ID is not hashed. Hashed values still count as collected data on both Google Play and the App Store.

## Where the data goes

Linkrunner uses this data to attribute installs and events to your campaigns and to show them in your dashboard.

When you connect an ad network (Meta, Google Ads, TikTok and others) or set up postbacks for an affiliate partner, Linkrunner sends it the conversions you mapped. Depending on the network, a conversion can include:

- Device IDs: GAID, IDFA, IDFV or App Set ID
- IP address, user agent, device model, OS version and screen size
- Coarse location (country, region, city and postcode, worked out from the IP address)
- Ad click IDs such as `gclid`, `fbclid` and `ttclid`
- Your user ID, and hashed email, phone and name

Linkrunner also sends attribution data to the analytics tools you connect, such as Mixpanel or Amplitude. Google Play and Apple both count all of this as sharing data with a third party.

When an iOS user denies tracking, Linkrunner has no IDFA and tells Meta that tracking is off. The other values in the list are still sent.

## Turn off collection

| Platform | What you can turn off | How |
| --- | --- | --- |
| Android | Google Advertising ID, limit ad tracking and App Set ID | [`setDisableAaidCollection(true)`](https://docs.linkrunner.io/sdk/android#disabling-aaid-collection) before `init`. Available on Android, Flutter and Unity |
| Android, any SDK | Google Advertising ID | [Remove the `AD_ID` permission](https://docs.linkrunner.io/sdk/android#removing-ad_id-permission) from your manifest. Use this from React Native, Expo, Capacitor and Cordova, which don't have `setDisableAaidCollection` yet. It blanks the ID on Android 13 and later when your app targets API 33 or higher. App Set ID is still collected |
| iOS | IDFA and the SDK's ATT prompt | `disableIdfa: true` in `initialize` |
| Android and iOS | Meta anonymous ID | `io.linkrunner.sdk.MetaAnonymousIdCollectionEnabled` set to `false` in `AndroidManifest.xml`, and `LinkrunnerMetaAnonymousIdCollectionEnabled` set to `NO` in `Info.plist`. Expo apps use the `collectMetaAnonymousId` plugin option. See your [SDK page](https://docs.linkrunner.io/sdk/android#meta-anonymous-id) |
| Android and iOS, any SDK | Every device-level identifier, including the advertising IDs, Android ID, IDFV and the ATT prompt | `privacyMode: true` in `init` or `initialize`. See [Privacy mode](https://docs.linkrunner.io/sdk/data-collection#privacy-mode) |
| All mobile SDKs | Plain-text name, email and phone | `enablePIIHashing(true)` |
| Android and iOS | Google Ads consent signals | `setConsent` sends your user's choices. Not available in Capacitor and Cordova yet |

Turning off the advertising ID lowers attribution accuracy. Only do it when you must, for example for apps in Google Play's Families program.

## Privacy mode

Privacy mode stops the SDK from collecting any device-level identifier. Only the install instance ID, a random ID the SDK creates for each install, identifies the install. Use it for apps directed at children, for example apps covered by COPPA, in Apple's Kids Category, or in Google Play's Families program.

Privacy mode needs Android SDK 5.1.0 and iOS SDK 5.1.0. The wrappers need Flutter `linkrunner` 5.1.0, `rn-linkrunner` 4.1.0, `expo-linkrunner` 4.1.0, `capacitor-linkrunner` 3.1.0 or `cordova-linkrunner` 2.1.0. In Unity, update the bridge code as shown in the [Unity guide](https://docs.linkrunner.io/sdk/unity#privacy-mode).

### What privacy mode turns off

| Platform | What the SDK stops doing |
| --- | --- |
| Android | Does not collect the Google Advertising ID, limit ad tracking or App Set ID (`gaid` is sent empty). Never reads the Android ID (`device_id` is sent empty). Does not send `device_ip`, the carrier name or Meta's install referrer |
| iOS | Does not collect the IDFA and never shows the ATT prompt. `requestTrackingAuthorization` reports the current status without showing the prompt. Does not send the IDFV or `odm_info`, and does not fetch Google's on-device conversion value. Sends the generic model, such as "iPhone", as `device_name`. Does not register for SKAdNetwork or update conversion values |

### What is still sent

- `install_instance_id`
- Device and app details: brand, model, OS version, locale, language, country, connectivity, user agent and your app's version. On iOS also the screen size, time zone and `att_status`, which the SDK reads without asking for permission
- The Google Play Install Referrer (Android) and Apple's AdServices token (iOS), so installs from Google Play links and Apple Search Ads are still attributed
- `consent`, if you call `setConsent`
- `privacy_mode: true`, on every request that carries device data
- Everything your app passes in. Privacy mode does not block `signup`, `setUserData`, `trackEvent`, `setPushToken` or `setAdditionalData`. Don't send a child's name, email or phone number through them

Linkrunner's servers still see the public IP address of each request, so IP-based install matching still works.

### Turn it on

Pass `privacyMode: true` when you initialize the SDK:

| SDK | Call |
| --- | --- |
| [Android](https://docs.linkrunner.io/sdk/android#privacy-mode) | `LinkRunner.getInstance().init(..., privacyMode = true)` |
| [iOS](https://docs.linkrunner.io/sdk/ios#privacy-mode) | `LinkrunnerSDK.shared.initialize(..., privacyMode: true)` |
| [React Native](https://docs.linkrunner.io/sdk/react-native#privacy-mode) and [Expo](https://docs.linkrunner.io/sdk/expo#privacy-mode) | `linkrunner.init(token, secretKey, keyId, disableIdfa, debug, true)` |
| [Flutter](https://docs.linkrunner.io/sdk/flutter#privacy-mode) | `LinkRunner().init(token, secretKey, keyId, disableIdfa, debug, true)` |
| [Capacitor](https://docs.linkrunner.io/sdk/capacitor#privacy-mode) | `linkrunner.init(token, secretKey, keyId, disableIdfa, debug, true)` |
| [Cordova](https://docs.linkrunner.io/sdk/cordova#privacy-mode) | `linkrunner.init({ token: "YOUR_PROJECT_TOKEN", privacyMode: true })` |
| [Unity](https://docs.linkrunner.io/sdk/unity#privacy-mode) | `LinkrunnerSDK.Initialize(token, privacyMode: true)`, with the bridges in the Unity guide |

The SDK saves the setting on the device:

- `true` stays on across app launches until you initialize with `false`.
- If you leave the parameter out, the SDK keeps the saved value. It is off until you turn it on.

Also:

- On iOS, don't add `NSUserTrackingUsageDescription` to `Info.plist`, because the SDK never asks for tracking permission. You don't need the SKAdNetwork keys `NSAdvertisingAttributionReportEndpoint` and `AttributionCopyEndpoint` either.
- On Android, [remove the `AD_ID` permission](https://docs.linkrunner.io/sdk/android#removing-ad_id-permission) from your manifest. Privacy mode stops the SDK from reading the advertising ID, but the SDK still declares the permission.

### What you give up

- Ad networks can't match installs by advertising ID, so fewer installs are attributed to campaigns.
- Google's iOS match rate drops, because the IDFV is Google's fallback ID when there is no IDFA.
- On Android, installs from Meta ads can't be matched through Meta's install referrer.
- On iOS, Linkrunner sets no SKAdNetwork conversion values.

Privacy mode only changes what the Linkrunner SDK collects. Whether your app meets COPPA, Kids Category or Families rules also depends on the data you pass in, the ad networks you connect and your other SDKs.

### Store answers with privacy mode on

Start from the [Google Play](https://docs.linkrunner.io/sdk/data-collection#google-play-data-safety-answers) and [Apple](https://docs.linkrunner.io/sdk/data-collection#apple-app-privacy-answers) answers below. Privacy mode changes what falls under each data type, not which types you declare:

| Form | Data type | With privacy mode on |
| --- | --- | --- |
| Google Play Data safety | Device or other IDs | Still **Yes**. The SDK sends no advertising ID, App Set ID or Android ID, but the install instance ID is an ID for one install of your app, and Google counts app-scoped IDs, such as Firebase installation IDs, in this type |
| Google Play Data safety | Approximate location | Unchanged. Linkrunner still works it out from the IP address of each request |
| Apple App Privacy | Identifiers → Device ID | Still declare it. The SDK sends no IDFA or IDFV, but the install instance ID still identifies the install |
| Apple App Privacy | Used for tracking | Unchanged. If you send conversions to ad networks, answer **Yes**: the IP address and any contact details you pass still reach them. If you don't connect any ad network, answer **No** |

## Google Play Data safety answers

These are Linkrunner's answers, assuming you send conversions to at least one ad network. If you don't connect any ad network, answer **No** under **Shared**.

General questions:

| Question | Answer for Linkrunner |
| --- | --- |
| Does your app collect or share any of the required user data types? | Yes |
| Is all of the user data collected by your app encrypted in transit? | Yes, the SDK uses HTTPS |
| Do you provide a way for users to request that their data is deleted? | Depends on your app |

Data types:

| Category → data type | Collected | Shared | Optional or required | Purposes |
| --- | --- | --- | --- | --- |
| Device or other IDs | Yes | Yes | Required | Analytics, Advertising or marketing, Fraud prevention, security, and compliance |
| Location → Approximate location | Yes, worked out from the IP address | Yes | Required | Analytics, Advertising or marketing |
| App activity → App interactions | Yes, the events you track | Yes, the events you map to ad networks | Required | Analytics, Advertising or marketing |
| Personal info → User IDs | Only if you pass a user ID | Yes | Depends on your app | Analytics, Advertising or marketing |
| Personal info → Name, Email address, Phone number | Only if you pass them in `signup` or `setUserData` | Yes, hashed | Depends on your app | Analytics, Advertising or marketing |
| Financial info → Purchase history | Only if you track payments or revenue | Yes, for payments you map to ad networks | Depends on your app | Analytics, Advertising or marketing |

The SDK collects nothing in the other categories (precise location, messages, photos, files, contacts, calendar, health, web browsing, crash logs or diagnostics).

## Apple App Privacy answers

On App Store Connect, declare each data type below. For every one, choose the purposes **Analytics**, **Developer's Advertising or Marketing** and **Third-Party Advertising**. As above, this assumes you send conversions to ad networks.

| Category → data type | Linked to the user | Used for tracking |
| --- | --- | --- |
| Identifiers → Device ID | Yes | Yes |
| Identifiers → User ID | Yes | Yes |
| Location → Coarse Location | Yes | Yes |
| Usage Data → Product Interaction | Yes | Yes |
| Usage Data → Advertising Data | Yes | Yes |
| Contact Info → Name, Email Address, Phone Number | Yes | Yes |
| Purchases → Purchase History | Yes | Yes |

Only declare **User ID**, **Contact Info** and **Purchase History** if your app sends them through the SDK. Apple counts sending this data to ad networks for ad measurement as tracking. Answer **Yes** even if you pass `disableIdfa: true` or the user denies ATT, because the IP address, IDFV and hashed contact details still reach ad networks.

### Privacy manifest

Apple asks every app to declare the data it collects and why it calls certain "required reason" APIs, including the code its SDKs add. If an SDK has no privacy manifest, you declare its use yourself, or App Store Connect can warn with `ITMS-91053: Missing API declaration`.

iOS SDK 5.3.1 and later ship a privacy manifest (`PrivacyInfo.xcprivacy`), so you add nothing to your own manifest. It declares:

- The data types in the table above, linked to the user and used for tracking.
- `UserDefaults` with reason `CA92.1`. The SDK reads and writes only its own settings.

To check it, archive your app in Xcode, then open the archive in the Organizer and choose **Generate Privacy Report**.

The manifest doesn't fill in App Store Connect for you. You still answer the App Privacy questions above.

It marks the SDK as tracking but lists no tracking domains, because iOS blocks listed domains when the user denies ATT.

## Web

The Web SDK collects data from the browser, not the device. Google Play and Apple forms don't apply, but your cookie or consent banner might. Load the SDK only after the visitor agrees if your consent rules require it.

| Group | What it sends |
| --- | --- |
| IDs | A random visitor ID (kept in `localStorage`), a session ID (kept in `sessionStorage`), and your user ID if you call `identify` |
| Page | URL, path, query string, title, referrer and canonical URL |
| Browser | User agent, platform, screen and window size, colour depth, pixel ratio, languages, time zone, connection type, CPU cores, device memory, touch support, whether cookies are on, the Do Not Track setting, page load timings and a bot flag |
| Campaign | UTM parameters, `lr_sub1` to `lr_sub5`, and ad click IDs such as `gclid`, `fbclid` and `ttclid`, for both the first and the latest visit |
| Events | The event name and the event data you pass to `track` |

The Web SDK stores campaign values in `localStorage` for up to 90 days, reads Meta's `_fbp` and `_fbc` cookies, and writes `_fbc` when a visitor arrives from a Meta ad. It does not hash data and has no consent switch. If you turn on the Hotstar pixel (`data-hotstar-pixel-id`), the SDK also loads Hotstar's pixel script and sends it your mapped events from the browser. See [Attribution storage](https://docs.linkrunner.io/sdk/web#attribution-storage) for the full list of keys.

**Need help?** Contact [support@linkrunner.io](mailto:support@linkrunner.io)
