@linkrunner/appbrew plugs Linkrunner into that system as an analytics tracker, so installs, events, revenue, identity, deep links and uninstalls are attributed without per-event code.
The package is an adapter over the React Native SDK. rn-linkrunner does the work; @linkrunner/appbrew translates Appbrew’s events and lifecycle into SDK calls.
Requirements
- An Appbrew app built on the
@gauntlet/*packages @linkrunner/appbrew0.2.0 or higher andrn-linkrunner3.1.0 or higher- iOS 15.0 or higher, Android minSdk 24
- A Linkrunner project token from Project Settings
1. Install
2. Register the tracker
Insrc/app/App.tsx, alongside Appbrew’s own trackers:
3. Configure in the Appbrew dashboard
The Appbrew team enters the settings per store. They reach the app asconfig.integrations.linkrunner, and the tracker reads them on every launch. Only token is required.
4. Native setup
- Android
- iOS
Exclude the SDK’s preferences from auto-backup in Both resource files ship inside
AndroidManifest.xml, or a reinstall reads as an existing install:rn-linkrunner. Permissions and the Play Install Referrer dependency are merged automatically.autoVerify. Follow Deep Linking Setup.
What the tracker does on its own
Using the attribution API
Everything above is automatic. Use these calls when your app needs the campaign context itself. Each is exported from@linkrunner/appbrew and waits for the tracker to initialise.
Getting attribution data
Read the campaign that drove the install and the deferred deep link. Use it for referral codes or campaign-specific onboarding.undefined when no token is configured or the install has no attribution. One native call per launch, shared with deferred routing.
Consent
Google Ads attribution needs consent beforeinit. Without a consent management platform, set the three consent settings in the Appbrew dashboard. With one, call setConsent from its callback and again whenever the choice changes:
unknown as a denial. See Google Integrated Conversion Measurement.
Handling deep links yourself
The tracker reports every link that arrives through React Native’sLinking. Push taps do not: Appbrew’s push module navigates from the notification payload directly. Report those so a push campaign shows as a re-engagement:
Extra user fields
id defaults to the current customer, or the device id for guests:
LinkrunnerTrackerV2 instance.
Testing
- Build with
debug: trueand look forLinkrunner initialised successfullyin the console. - Open Events Settings. The install and events appear as you use the app.
- Place an order and confirm one payment appears. Relaunch and confirm it is not duplicated.
- Install through a campaign link on a fresh device and confirm
getAttributionData()returns thedeeplink.
Troubleshooting
Need help? Contact support@linkrunner.io