title: Chrome Custom Tabs EXTRA_REFERRER is not working
body: <p>As per the documentation google, Chrome Custom Tabs support <strong>app as the referrer</strong>. But when I checked on google analytics the traffic not refer to the app it's showing as <strong>direct</strong>. Resource: <a href="https://developer.chrome.com/multidevice/android/customtabs#add-your%20app%20as%20the%20referrer" rel="nofollow noreferrer">https://developer.chrome.com/multidevice/android/customtabs#add-your%20app%20as%20the%20referrer</a></p>
  <p>Here is my code:</p>
  <pre><code>fun browseUrlCustomTab(context: Context, url: String) {
          var url = url
          if (!url.startsWith(&quot;http&quot;) &amp;&amp; !url.startsWith(&quot;https&quot;))
              url = &quot;http://$url&quot;
          val builder = CustomTabsIntent.Builder()
                  .addDefaultShareMenuItem()
                  .setToolbarColor(ContextCompat.getColor(context, getThemePrimaryDarkColor()))
                  .setShowTitle(true)
                  .enableUrlBarHiding()
                  //.setStartAnimations(context, android.R.anim.slide_in_right, R.anim.slide_out_left)
                  .setExitAnimations(context, android.R.anim.slide_in_left, android.R.anim.slide_out_right)
                  .setCloseButtonIcon(getBitmapFromVectorDrawable(context, R.drawable.ic_back)!!)
          val customTabsIntent = builder.build()
          customTabsIntent.intent.setPackage(&quot;com.android.chrome&quot;)
          //customTabsIntent.intent.flags = Intent.FLAG_ACTIVITY_NO_HISTORY or Intent.FLAG_ACTIVITY_NEW_TASK
          customTabsIntent.intent.putExtra(Intent.EXTRA_REFERRER,
                  Uri.parse(&quot;&quot;+Intent.URI_ANDROID_APP_SCHEME + &quot;//&quot; + context.packageName))
          customTabsIntent.launchUrl(context, Uri.parse(url))
      }
  </code></pre>
  <p>My query is there anything I missed or any way to get a referral on google analytics.</p>