please don't answer by only reading the title of the question..That's not my question..I gave that title only because i couldn't find any other good title for this question...
I've a doubt..Can somebody help me? it's related to opening a specific app from a url. The procedure is explained here
But that's not what I want to know. Is there any way that I can hard code that referral url inside the app?
OR may be this will help u to understand...
imagine, user installed an app from google play by clicking a google play referral link..google play sends the content of referral link as an intent and the broadcast receiver captures it and when the user opens the app for the first time, the referral link will be send back to google analytics for tracking the referral...
BUT
The tracking works only when the user opens the app for the first time after installation...But i want to track it forever..
So what i'm asking is, can i hard code the above said referral link within the app so that whenever the user opens the app manually, the app sends the referral data again(not to google play, but to a server or site that i've already coded in the app?
Please note that i mentioned google play referral only because you can understand my question..
............................................................................
i think this will be more easy to unerstand
case 1: user clicks a url in his browser..browser opens the app...app captures and reports the url
I want the same sequence of things to happen in the following case, except that the user didnt open the app by clicking url, but manually open the app
case 2: user clicks the app's icon in the device..app opens...app reports the url-here is where my question lies-can i hard code the url? (like a browser launched the app)
and the second case should happen every time the user opens the app, manually...that's why i asked if there is a way to hard code the url... ..............................................................................
I think this should explain what I'm looking for
A user opens the app manually (by clicking the app's icon in his device) but the app thinks that the user clicked a specific url (say, www.123.com/abcd-abcd
) and that's what opened it.
So any way to achieve this?
UpdateI will tell you the use of it.. There may be other better and easy options for achieving this like google play referral tracking or MAT etc..But since this got into my mind, i'm looking for an answer
Imagine, i have an app and i've 3 friends who's willing to share my app...I will create 3 different apk(of the same app) and in the first apk, i will include his website's url(even a fake url will do)..so when the user opens the app manually, it will report to me that it is opened by friend's url and i can identify that he's the sharer..
Then i will give the 2nd apk to my second friend with his url inside and app will report this url to me every time a user opens the app..
Then third apk to 3rd friend with his url and app will report his url to me..
So from looking at the total number of url openings(in fact the user didnt opened the app by clicking any url), i can understand which friend is more effective in sharing my app and if their referrals are engaging with my app regularly or not..
Example: i get a report that app opened by 1st friend's url 50 times..
then i get another report that app opened by 2nd friend's url 100 times
then i get another report that app opened by 3rd friend's url 500 times
So from the above report, i can understand that my third friend is most successful in referring my app or the people he shared the app with are the ones who's engaging with my app mostly...
.............Or think like this:....................
You have an app and you gave your friend a referral link and he shares the link with his friends..His friends clicked the link and the browser opens the app(because the app was already installed in the device)...then your app captures the link and sends it to you..But you want the app to send the link(report) again whenever the same user opens the app manually(by clicking the icon)..so since the user may not click the link again, the app will not send you the link again because it sends only when somebody open the app from a browser..BUT you want the app to report the link every time the old user opens your app(manually)...So any way to hard code the url within the app so that it will report the same way as somebody clicking a link?
And imagine that there is a 2nd friend with a different url and a different apk of the same app(hard coded his url inside the app)
..............................