Attribution Providers
Configure direct deep links, Google Play Install Referrer, and attribution adapters for the GrowSurf Android SDK.
On Android, GrowSurf can capture referral attribution from direct deep links, Google Play Install Referrer, or provider callback payloads. Capture attribution before calling addReferredParticipant().
Direct deep links
Use handleDeepLink(uri) when the installed app opens from a link that already contains grsf, which contains the referral code.
intent.data?.let { uri ->
val attribution = growsurf.handleDeepLink(uri)
}Google Play Install Referrer
When Android referral clicks route to Google Play with a Play Install Referrer payload, addReferredParticipant(...) checks the install referrer once when no explicit or pending attribution exists. You can also call handleDeferredDeepLink() yourself before signup when you want to inspect the attribution result.
While testing, pass forceRefresh = true to check the install referrer again:
Adapters
GrowSurf provides adapters for popular attribution providers. Choose your provider below, or use Other to pass a dictionary of attribution values from any other provider.
Accepted attribution keys
grsf
Preferred GrowSurf referrer ID.
ref
Alternate referrer ID.
referredBy
Alternate referrer ID.
provider
Attribution provider name. Ignored when the SDK method receives an explicit provider argument.
clickId
Provider click ID metadata.
click_id
Provider click ID metadata.
unique
Optional boolean string: true or false.
The SDK also parses values nested inside URL-like payload fields. For example, a provider value of https://piedpiper.com/?grsf=referrer_id&click_id=click_123 can still produce GrowSurf attribution. If a provider returns a GrowSurf-hosted share URL such as https://grow.surf/share/:campaignId/:referrerId, the SDK uses the participant value from the path.
Last updated
Was this helpful?