Is it possible to pass url parameters to google play? (pass query strings)

16,232

Solution 1

According to this: https://developers.google.com/analytics/devguides/collection/android/v2/campaigns#google-play-how

How Google Play Campaign Measurement works

Google Play Store Campaign Measurement relies on the use of Campaign Parameters to pass campaign and traffic source information into your app at the time that it is downloaded from the Google Play Store.

The following is an end-to-end description of how Google Play Campaign Measurement works:

A user clicks on a link, from an ad, website, or app, that takes them to your app's Google Play Store page. The link is tagged with Campaign Parameters. After the user downloads and installs your app, the Google Play Store will broadcast an INSTALL_REFERRER intent on the device that includes those same campaign parameters. Your app will then respond to that intent, using the BroadcastReceiver object provided below, reading the campaign parameters and using them to update the Google Analytics campaign information.

Solution 2

If you route the parameters as part of the campaign tracking options in the Analytics SDK, it is possible to pass in custom variables to the installed application if the user follows a provided link.

For example, set the campaign name to a variable.

https://developers.google.com/analytics/devguides/collection/android/v2/campaigns

In my example, I set it to the users email address so when the app loads, the login form is prefilled.

Solution 3

This can be done by using an install referrer and listen to it in the app after install through an InstallReferrerReceiver: https://developers.google.com/android/reference/com/google/android/gms/tagmanager/InstallReferrerReceiver

In your case you can simply put your franchiseeid into the referrer property:

https://play.google.com/store/apps/details?id=com.rovio.angrybirds&referrer=franchiseeid%3DUSAFLO012

This is a little late but might help others.

Share:
16,232
Vinod
Author by

Vinod

Updated on June 11, 2022

Comments

  • Vinod
    Vinod about 2 years

    Is it possible to pass url parameters (or "query strings") to google play and track the variable while installing the app in phone?

  • Agamemnus
    Agamemnus over 9 years
    developers.google.com/analytics/devguides/collection/android‌​/v4/… is the new new new version of this. Was wondering if you wanted to update your text to reflect the new method.
  • Abdul Momen Khan
    Abdul Momen Khan over 8 years
    Could you please share the example code for this implementation as this is not clear where to add custom parameter ?