Get attribution info
The justtrack SDK automatically determines a user’s identity and attribution after setup. This includes details about the ad the user clicked (if any), the campaign that ad belongs to, and the associated partner and channel.
You can access attribution data in your app through the JustTrackSdk::attribution
field:
val attribution = sdk.attribution.await()
val campaignName = attribution.campaign.name
val adsetId = attribution.adsetId
val userType = attribution.userType
val partnerName = attribution.partner.name
If you are only using the justtrack dashboard to keep track of your install sources, you don't need to call getAttribution
yourself.