ionic-team / ionic-plugin-deeplinks

Handle deeplinks into your Ionic/Cordova apps from Universal Links, App Links, and Custom URL schemes. For those using Ionic 2, there are some nice goodies that make life easier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Provide referrer url

webberig opened this issue · comments

Whenever a user clicks a link in the browser and chooses to open our app, I need to know the url on which the link was found. The referrer is often used for marketing purposes to find out where users come from (ie. organic searches, referrals, ...). This article explains how this can be done in native code.

Unfortunately, this plugin does not implement this and therefor does not provide the referrer url to the Javascript. The information I get looks like this:

{"$link":{"url":"https://www.mywebsite.be/path/to/page/","path":"/path/to/page/","scheme":"https","host":"www.mywebsite.be","extra":{"org.chromium.chrome.browser.eenp":["be.zimmo.mobile"],"org.chromium.chrome.browser.referrer_id":6,"org.chromium.chrome.browser.request_metadata_token":[76,-13,-19,-81,-66,-123,-67,53,-95,100,29,-127,-20,100,-23,-79,70,64,46,-67,127,-7,-52,-9,118,-124,-60,38,-83,120,119,-82],"com.android.browser.application_id":"com.android.chrome"}}}

Would it be possible to add a property to the extra object ? (ie. extra.referrer="https://www.google.com/mysearchresults)