Is it possible to pass url parameters (or "query strings") to google play and track the variable while installing the app in phone?
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.
To pass in parameter values, simply append them to the query string at the end of the base URL.
A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With