# How to access google play store url parameter inside ionic application

**URL:** <https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631>\
**Category:** uncategorized\
**Created:** [April 24, 2015, 12:38pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631 "2015-04-24T12:38:18Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anshulklr](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@anshulklr](https://forum.ionicframework.com/u/anshulklr)\
**Post date:** [April 24, 2015, 12:38pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/1 "2015-04-24T12:38:18Z")

</div>

my question is to access the url parameters of the google play store  
eg [www.googleplaystore.com/myappname?"somecode](http://www.googleplaystore.com/myappname?%22somecode)"  
so i want to access this “somecode” inside my application when the user download myapp

@mhartington can you help me with this?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [April 24, 2015, 3:06pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/2 "2015-04-24T15:06:04Z")

</div>

Not sure this is possible. Couldn’t find anything about how to access this information

---

<div class="post-metadata">

**Author:** ![ritu29](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@ritu29](https://forum.ionicframework.com/u/ritu29)\
**Post date:** [April 27, 2015, 8:51pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/3 "2015-04-27T20:51:27Z")

</div>

INSTALL\_REFERRER Looks promising [https://developer.android.com/reference/com/google/android/gms/tagmanager/InstallReferrerReceiver.html](https://developer.android.com/reference/com/google/android/gms/tagmanager/InstallReferrerReceiver.html)

But not sure how we can implement this in ionic… The broadcast receiver needs to be present somewhere in the app but where ?? Is the question

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [April 27, 2015, 8:58pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/4 "2015-04-27T20:58:59Z")

</div>

It would need to be done in a Cordova plugin, using native code.

If you use Google Analytics that should track the referrer for you automatically.

---

<div class="post-metadata">

**Author:** ![anshulklr](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@anshulklr](https://forum.ionicframework.com/u/anshulklr)\
**Post date:** [April 28, 2015, 6:01am UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/5 "2015-04-28T06:01:26Z")

</div>

can you suggest a plugin for it?

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [April 28, 2015, 12:45pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/6 "2015-04-28T12:45:02Z")

</div>

There’s a [google-analytics-plugin](https://github.com/danwilson/google-analytics-plugin) - also wrapped by [ngCordova](http://ngcordova.com/docs/plugins/googleAnalytics/) - if you simply want to to [track installs](https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-campaigns) in Google Analytics.

If you need to access the install referrer in your own code I’m afraid you’d need to [write your own](https://cordova.apache.org/docs/en/4.0.0/guide_hybrid_plugins_index.md.html) Cordova plugin.

---

<div class="post-metadata">

**Author:** ![anshulklr](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@anshulklr](https://forum.ionicframework.com/u/anshulklr)\
**Post date:** [April 28, 2015, 1:10pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/7 "2015-04-28T13:10:16Z")

</div>

i got the referrer code which is getting saved in my sharedpreferences. do you have any idea on how to access it now?

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [April 28, 2015, 4:35pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/8 "2015-04-28T16:35:13Z")

</div>

This [cordova.app-preferences](http://plugins.cordova.io/#/package/me.apla.cordova.app-preferences) plugin? (Haven’t tried it.)

---

<div class="post-metadata">

**Author:** ![hitpopdimestop](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hitpopdimestop/32/106390_2.png) [@hitpopdimestop](https://forum.ionicframework.com/u/hitpopdimestop)\
**Post date:** [November 9, 2017, 12:01pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/9 "2017-11-09T12:01:57Z")

</div>

Can you share your experience? Have you made everything work?

---

<div class="post-metadata">

**Author:** ![subkkonen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/subkkonen/32/129938_2.png) [@subkkonen](https://forum.ionicframework.com/u/subkkonen)\
**Post date:** [December 24, 2019, 10:57am UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/10 "2019-12-24T10:57:37Z")

</div>

Hello! Did anyone successfully accessed parameters in the Google Play Store and Apple Store?

---

<div class="post-metadata">

**Author:** ![vijayan007](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/vijayan007/32/133470_2.png) [@vijayan007](https://forum.ionicframework.com/u/vijayan007)\
**Post date:** [November 9, 2020, 4:40am UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/11 "2020-11-09T04:40:14Z")

</div>

I am looking for the same solution, if you have solved it can you please share it?

---

<div class="post-metadata">

**Author:** ![webfelicons](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@webfelicons](https://forum.ionicframework.com/u/webfelicons)\
**Post date:** [January 18, 2021, 10:59am UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/12 "2021-01-18T10:59:24Z")

</div>

Hi, any update on this?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 8:52pm UTC](https://forum.ionicframework.com/t/how-to-access-google-play-store-url-parameter-inside-ionic-application/21631/13 "2021-07-19T20:52:16Z")

</div>

Closed on July 19, 2021, 8:52pm UTC


