Attribution & deep links

Capture deep links, install referrers, deferred links, and SKAN context.

Last updated June 3, 2026

Capture mobile attribution from tagged deep links, Google Play Install Referrer, and privacy-preserving Apple SKAdNetwork postbacks. React Native reads opening URLs through Linking and reads the Play referrer through its Android native package.

Prerequisites

  • A mobile SDK installed
  • Universal links or app links configured
  • The React Native Expo config plugin enabled for SKAdNetwork
  • Campaign parameters on links where possible

Steps

1

Tag the opening URL

React Native reads the initial URL and later Linking events automatically.

campaign-url

1myapp://offer?utm_source=meta&utm_medium=paid&utm_campaign=summer-sale-2026
2

Rebuild Android for Play attribution

The React Native native package reads Google Play Install Referrer once and caches it for later app opens.

3

Enable Apple's postback endpoint

Add @grometrics/react-native to Expo plugins, then enter the numeric App Store ID in Grometrics Settings. Apple sends signed aggregate postbacks to Grometrics; SKAdNetwork does not expose a per-user campaign value to the app.

4

Configure native click IDs

Pass gclid, gbraid, or wbraid when creating the iOS, Android, or Flutter tracker. The native iOS SDK handles Apple Search Ads attribution separately.

Options / Configuration

OptionTypeRequiredDescription
urlstringnoTagged opening or deferred URL
sourcestringnoAd network or source name
campaignstringnoCampaign ID or UTM campaign

What happens next

Open Traffic Sources and confirm Install Sources or Deep Links show the attributed session.

Verify your setup

Verify your setup

Troubleshooting

Everything is Direct

Confirm links include source or campaign params and that the SDK passes them during app_open.

Was this page helpful?