Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 664
Vinod Avatar asked Mar 27 '13 07:03

Vinod


People also ask

Can I pass URL as query parameter?

Yes, that's what you should be doing. encodeURIComponent is the correct way to encode a text value for putting in part of a query string. but when it is decoded at the server, the parameters of url are interpreted as seperate parameters and not as part of the single url parameter.

How do you pass string parameters in GET request URL?

To pass in parameter values, simply append them to the query string at the end of the base URL.

Does URL include query string?

A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters.

How do I add parameters to a URL query?

Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a '? ' Is added followed immediately by a query parameter.


2 Answers

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.

like image 56
Lex Bryan Avatar answered Oct 02 '22 16:10

Lex Bryan


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.

like image 44
simbolo Avatar answered Oct 02 '22 16:10

simbolo