1

For Example: I am using my website(abc.com) in Android WebView App. My website has external link(elink.com). When someone visit my Android app and click on elink.com then it opens in mobile browser. The Google Analytics of elink.com showing that traffic is coming from direct source not from My App and not from my website(abc.com). Why it is showing direct source traffic.

I am asking this question because I am using affiliate links and my providing approved traffic source is my website. The affiliate links must refer from my website(or App, if i add my App as traffic source).

awais
  • 95
  • 1
  • 8
  • 1
    When opening the URL in external web browser via Intent have you set your app as referrer? https://developers.google.com/web/android/custom-tabs/best-practices#add_your_app_as_the_referrer https://stackoverflow.com/a/37950474/150978 – Robert Jul 16 '20 at 12:50
  • I do required changes but realtime and acquisition in Google analytics(external website) is showing traffic as direct, no app refer. Why? – awais Jul 22 '20 at 11:34

1 Answers1

1

Because Webview is not a browser, it is development component used inside of native apps. So app vendors control all request headers, if the think they will have benefits by hiding a referer they will do it. Or even if they will not find benefit from setting the referer - they will not waste time on fixing or implementing it.

Most of apps behave like this. E.g. reddit.

Ivan Borshchov
  • 3,036
  • 5
  • 40
  • 62