question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Investigate referral code being added from the playstore install

See original GitHub issue

Description

Historically we’ve accepted that referral codes do not get captured from our google paid digital advertising into our internal analytics system. More specifically we are missing out on referral data from the Google Playstore install, we’d like to investigate the reason for this because it looks like we have the proper code in place getInstallReferrer() to extract this data.

A couple places to leading thoughts:

  • Is the referral code captured and added to the usage ping before the user sends their first usage ping?
  • Is there any other information in the getInstallReferrer response that we can use? (campaign name, id, ref url)?
  • We are calling getInstallReferrer()docs. Is this being called at the correct time and added to the users local-state so that it is included in the usage ping? And does it persist for 90 days?
  • Is referral link being passed through to install and do we have a valid refcodes in campaign setups, format XXX123? ?

cc @anthonypkeane @laurentiugruia

Issue reproduces how often

  • Seems to be almost all the time

Version/Channel Information:

  • Can you reproduce this issue with the current Play Store version? Yes
  • Can you reproduce this issue with the current Play Store Beta version? Yes
  • Can you reproduce this issue with the current Play Store Nightly version? Yes

Device details

  • All android core it seems

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
samartnikcommented, Oct 4, 2022

Test plan: Case 1:

  1. Install brave browser from the GPS ad (contact @porteron on how to do it).
  2. Goto brave://local-state.
  3. Make sure that ref code there is UAC001.

Case 2:

  1. Install brave browser from the GPS (just a regular install).
  2. Goto brave://local-state.
  3. Make sure that ref code there is BRV001.

Case 3:

  1. Install brave browser from the referral link.
  2. Goto brave://local-state.
  3. Make sure there is appropriate ref code.
0reactions
kjozwiakcommented, Oct 12, 2022

Verification PASSED on Pixel 6 running Android 13 using the following build(s):

Brave | 1.44.110 Chromium: 106.0.5249.103 (Official Build) (64-bit)
--- | ---
Revision | 182570408a1f25ab2731ef5f283b918df9b9f956-refs/branch-heads/5249_91@{#6}
OS | Android 13; Build/T1B2.220916.004

Test Case #1

As per https://github.com/brave/brave-browser/issues/25265#issuecomment-1267633910, this was verified on BETA as per https://github.com/brave/brave-browser/issues/25265#issuecomment-1269051612.

Test Case #2

  • downloaded/installed Brave Browser from GPS via the internal test channel
  • launched Brave and ensured that "promo_code": "BRV001" via brave://local-state
"referral": {
         "initialization": true,
         "promo_code": "BRV001"

Screenshot_20221011-233058

Test Case #3

  • opened https://kjozwiak.github.io via Chrome and clicked on Production GPS WWK708
  • downloaded/installed Brave Browser from GPS
  • launched Brave and ensured that "promo_code": "WWK708" via brave://local-state
"referral": {
         "download_id": "59b8c2a2-f697-4ea0-b5ce-cac0badfb7ce",
         "initialization": true,
         "promo_code": "WWK708"
      },

Screenshot_20221011-233624


Verification PASSED on Samsung Tab S8 Ultra running Android 12 using the following build(s):

Because of https://github.com/brave/brave-browser/issues/25931, used the apk method on the tablet.

Brave | 1.44.112 Chromium: 106.0.5249.119 (Official Build) (32-bit)
--- | ---
Revision | 9f2101830b56fd2ea1408287f6c74e253ebcb7c6-refs/branch-heads/5249@{#797}
OS | Android 12; Build/SP2A.220305.013

Test Case #1

As per https://github.com/brave/brave-browser/issues/25265#issuecomment-1267633910, this was verified on BETA as per https://github.com/brave/brave-browser/issues/25265#issuecomment-1269051612.

Test Case #2

  • downloaded/installed Brave Browser via the APK
  • launched Brave and ensured that "promo_code": "BRV001" via brave://local-state
"referral": {
         "initialization": true,
         "promo_code": "BRV001"

Screenshot_20221012_014859_Brave

Test Case #3

  • opened https://kjozwiak.github.io via Chrome and clicked on Production GPS WWK708
  • once the GPS opened, installed 1.44.112 Chromium: 106.0.5249.119 via the APK
  • clicked on Open via GPS
  • launched Brave and ensured that "promo_code": "WWK708" via brave://local-state
},
      "referral": {
         "download_id": "fb3efed4-7e38-4978-941e-a801f62ff164",
         "initialization": true,
         "promo_code": "WWK708"
      },

Screenshot_20221012_015940_Brave

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there method to get referral code from google play store in ...
Follow the app sharing/app invite guide. The application gets the share url when launched after an successful invite install. Query the url for ......
Read more >
Google Play Install Referrer - Android Developers
You can use the Google Play Store's Install Referrer API to securely retrieve referral content from Google Play, such as:.
Read more >
Measure and analyze your app's acquisition - Google Support
The acquisitions reports measure how well your store listing acquires users, rather than installs, meaning conversion performance is calculated based on users ...
Read more >
How to Use Google Play Install Referrer API in Android?
Go to the MainActivity.java file and refer to the following code. Below is the code for the MainActivity.java file. Comments are added inside ......
Read more >
How to Design Your Mobile App for Referral (Part 2) - Extole
1. If the app is already installed on the friend's phone, the friend is taken to the app. They're treated to the normal...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found