Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9192031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:49:49+00:00 2026-06-17T20:49:49+00:00

I have been researching about this topic for hours now, and I could not

  • 0

I have been researching about this topic for hours now, and I could not find any helpful information. So finally I have decided to create a Stackoverflow account for the first time.

Basically I have one Android application, it is hosted on one server where it will be downloaded from by the app users. However, links to the app will be distributed to many different affiliate websites each having a unique ID known to my system.

So I want to track these affiliates. The app needs to know which affiliate’s link did the user click before the app was installed. And then the app will pass the affiliate number to our server.

example of the download url will be something like:-
http://myserver.com/apphosting?affiliate=777&app.apk

Google supports this functionality only if you host the application on Google Play and allows you to use the install referrer. Am I correct?

Is there a way to solve this problem? it looks to me a very rare problem.

Thanks in advance. I really appreciate your help and few minutes of your precious time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:49:50+00:00Added an answer on June 17, 2026 at 8:49 pm

    There are a few ways to go about this and to do them well they all involve a significant amount of effort.

    1. You could return a different APK for every affiliate URL. If you have a lot of different affiliates, you’d want to have a build system which would compile a unique APK for each based on what is mostly the same application but with a different values resource file which contains the different affiliate IDs (probably making the main application a library application). Whether you hook this up directly to the web site or just copy the output to the website is up to you. You can then have your app phone home using this value.
    2. You can do some form of device fingerprinting both on the download side and on the app launch side, and match up the fingerprints. The simplest reasonably accurate fingerprint would probably just consist of the IP address of the device. This has its limitations, however. Research has shown that:

    individual cell phones can expose different IP addresses to servers
    within time spans of a few minutes

    You’ll also find that multiple phones can share the same IP at the same time due to the NAT technology that many carriers use. Still, the first 13-16 bits of the IP are for the most part quite stable within a short time period. You can also gain some accuracy by examining HTTP headers, especially browser user agents. There are some problems that manifest there too but there’s definitely useful information there.

    As you are distributing this application yourself, I would favor the first approach fairly heavily. It gives you better accuracy and is (at least in my opinion) easier to implement (and yes I’ve implemented something along the lines of both of these solutions). The downside of course is that you’ll be distributing many different versions of your app, but if you do it right you should have only very minimal differences between the APKs that will only slightly increase your support overhead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been researching all over the internet about this, and unfortunately cannot find
I have been researching this topic for a few days now and i'm still
i've been researching this for about 3 hours now with no gravy so I
Ok, I've been researching this for about 4 hours now. I had another similar
I have been researching this issue pretty extensively and cannot seem to find an
I've been researching on how to do this for about a week now and
This is something I have been struggling about for some time now. The thing
I am beyond frustrated. I have been researching an answer to this for hours
I have been researching and have some few ideas about a distributed caching system
I have been researching intently and have been unable to find a solution to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.