Is there a way to pass parameters to the marketplace installer for an app
Asked Answered
P

2

13

when providing a user on a mobile, a link to an android application via a web page, it is possible for params from the url to be passed to the app being installed.

I'm guessing the answer is no - but it doesn't help to ask.

The reasoning being that it would be handy for some situations to have a generic app that pulls config information from the referrer.

Punke answered 10/2, 2010 at 14:41 Comment(0)
S
10

This is possible only for the use case of referral tracking, using the Analytics Tracking for Mobile Apps SDK. The documentation will have more details, but the basic steps are:

  1. Create referral-tagged market deep link URLs using this tool.
  2. Use these links on web sites that you want to track referrals from.
  3. When a user downloads your app using the referral link, the referral info is stored.
  4. Upon first run of your app, use the Analytics SDK to track a 'first-run event' using trackEvent. If your app was downloaded with referral info, this event (and all future event and pageview tracking) will be tagged with the referral info.
  5. In Analytics, you'll be able to filter these events on campaign/referral info.
Sitzmark answered 10/2, 2010 at 17:57 Comment(1)
It is a real shame that you can't access other parametersTiny
I
1

I think you can change a bit the scenario of the anlytics referral tracking to pass parameters to your app during installation if you need...

You have to declare a custom receiver for com.android.vending.INSTALL_REFERRER in the custom receiver parse the url from the market.

If you want the analytics to work as well, is better if you extend the com.google.android.apps.analytics.AnalyticsReceiver and call the super.onReceive

There are two parameters that are optional in the referral the campaign term and the campaign content so I will put there the information you want to pass

I worked a bit on this and I wrote a post where I explain even how to test it : http://www.dev-articles.com/article/Analytics-referral-tracking-for-Android-447001

Iey answered 30/7, 2011 at 11:19 Comment(1)
that article URL is not working anymore. Any ideas on how to achieve this nowadays? Thanks in advanceArchimage

© 2022 - 2024 — McMap. All rights reserved.