Tolegen Rychshanov
Tolegen Rychshanov

Reputation: 13

Is there a way to check where from app is installed

In my project I want to know from what website or android market, my application has been downloaded and installed.

Now I see two ways:
1) Use mobile browser storage to save location
2) Generate application for each site in the system

Both of them enough for my project, but I want to know if there is another legal ways through Play market

Upvotes: 1

Views: 106

Answers (3)

furkan
furkan

Reputation: 542

You're looking for Google Play Campaign Measurements

Google Play Campaign Measurement allows you to see which campaigns and traffic sources are sending users to download your app from the Google Play Store.

Upvotes: 0

Farhad
Farhad

Reputation: 12976

You can create multiple apk files, one for every distribution channel you have.

In your project, create a config.json which contains the information you want to know about the installation and current version of the installed apk file of your application. The contents of the file, varies based on the distribution channel. For example, for the version you want to upload to Google Play, it can contain :

{
    "channel" : "google-play-store",
    "campaign_name" : "fall 2016"
}

Now, when the user installs and runs your application for the first time, read this config.json and send this information to a remote webservice of your own, to collect statistics.

Upvotes: 0

Code-Apprentice
Code-Apprentice

Reputation: 83527

PackageManager.getInstallerPackageName() will give you the package name of the app which installed the app with the package name passed in as a String.

Upvotes: 1

Related Questions