Skip to content

Instantly share code, notes, and snippets.

@andreban
Created January 5, 2016 10:51
Show Gist options
  • Save andreban/615b6fb86dff9ee245ec to your computer and use it in GitHub Desktop.
Save andreban/615b6fb86dff9ee245ec to your computer and use it in GitHub Desktop.
//Append the parameter that identifies it is coming from the app
//to the URI. The name of the parameter and it's value is specific to
//the Analytics platform and how the developer wants to identify the app.
String url = "http;//www.google.com";
Uri uri = Uri.parse(url);
uri.buildUpon().appendQueryParameter("utm_source", "myApp");
Intent intent = new Intent(Intent.ACTION_SEND, uri);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment