Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test google play referrer api before publishing in Google play store?

Google announced their Google Play Referrer API at 20 November 2017 as new way to track app installs. My question is: Is there any way to test the function before my app is released in Google play?

like image 989
ju duan Avatar asked Mar 06 '18 09:03

ju duan


People also ask

How do I test Google install referrer?

If all goes well, you should be able click the generated URL on your Android device, go to the Play store, install the "Referrer Test for Google Play" application, run the application, and see the referrer string you entered on this site show up in the log within the application.

How does Google Play install referrer work?

The Google Install Referrer is an Android-specific measurement technology that attributes clicks on Google Play Store app pages to the correlating app download. Google's Install Referrer framework sends an install referrer (or unique code string) to the Google Play store when an ad click has occurred.

What is Play store referrer API?

A Google Play install referrer is a string of numbers that is used to measure mobile app install ad performance on Android devices. If you're a web marketer, think of it like UTM parameters for mobile app installs.

What is permission play install referrer API?

The Play Install Referrer API is an AIDL Service Interface primarily used by non-Java programmers. Note: The Play Install Referrer Library provides a wrapper around the Play Install Referrer API and is designed to help Java programmers use the API.


2 Answers

You can test it without uploading on Playstore.

I did in following way.

  1. I have created urls like https://play.google.com/store/apps/details?id=fullpackagename&referrer=utm_source%3Dmobisoc&utm_content%3Dmobisoc&hl=en
  2. I have fired this url from my mail. It redirects to Playstore
  3. From command Prompt(using adb command) , I have installed desired apk.
  4. On Playstore, "install" button will be replaced with "open" button and I clicked on that. it is working
like image 190
eager Avatar answered Oct 17 '22 15:10

eager


Update

Beta test only works for referrer broadcast. I implement both installreferrer API and broadcast at the same time, so the referrer is from broadcast instead of API.


Use Beta test provided by Google Play as following:

  1. Submit beta test APK file
  2. Add your account to the testers
  3. Open the detail page url of your APP with a referrer. The url can be like this according to a similar thread:

    https://play.google.com/store/apps/details?id=com.mypackage&referrer=utm_source%3Dmobisoc%26utm_content%3D{transaction_id}%26utm_campaign%3D1

  4. If using Chrome, the url can be redirected to Play APP by clicking "Open in Play Market APP" button on the page.
  5. Download and install your APP in Play APP.

Your app should then receive a referrer after launch, and you can test it by reporting it or printing a log.

Alpha test should also work, but I have not test that.

like image 4
thundertrick Avatar answered Oct 17 '22 15:10

thundertrick