BranchMetrics / android-branch-deep-linking-attribution

The Branch Android SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://docs.branch.io/pages/apps/android/
MIT License
395 stars 155 forks source link

[SDK-2210] Add support for Meta Install Referrer #1160

Closed nsingh-branch closed 4 months ago

nsingh-branch commented 5 months ago

Reference

SDK-2210 -- Support Meta's Install Referrer to track EVC

Description

Meta has their own install referrer that tracked ad clicks and views in their apps. We want to fetch and pass this through similar to the other install referrers like Google Play, Samsung, etc. To handle this, we fetch the install referrer from the Facebook or Instagram content provider. Then we have specific logic on how to handle it based on if it is a click through or view through. There is also always an accompanying Google Play Install Referrer so we have to dedupe them based on if they have the same click timestamp.

Testing Instructions

Risk Assessment [MEDIUM]

Adds new code to the install referrer code which could impact session initialization and install tracking.

Reviewer Checklist (To be checked off by the reviewer only)

cc @BranchMetrics/saas-sdk-devs for visibility.

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 38.46%. Comparing base (9e4a699) to head (1ef7dc5).

Files Patch % Lines
...h-SDK/src/main/java/io/branch/referral/Branch.java 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1160 +/- ## ============================================ + Coverage 38.26% 38.46% +0.19% Complexity 685 685 ============================================ Files 59 58 -1 Lines 6220 6193 -27 Branches 933 928 -5 ============================================ + Hits 2380 2382 +2 + Misses 3394 3365 -29 Partials 446 446 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.