Tracking visitors: website to mobile application

The Webtrends 10.2 Javascript tag and the ID Broadcaster plug-in enable you to send visitor data from your website to your mobile application.

To track visitors from your website to your mobile application, you need:
  1. Tag the website with the Webtrends JavaScript tag, using the id_broadcaster plug-in.

    Visitor data is added to links that match a list of element IDs or a list of domains, matched against the href of the link.

  2. Register a custom URI scheme for your app by opening its WMAppManifest.xml file and adding:
      <Protocol Name="contoso" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />

    The Name attribute is the prefix in your custom URI scheme. Name must be a string between 2 and 39 characters. Valid characters are: number, lower case letter, period (.) and hyphen (-). Name does not include the colon (:) or any other part of the URI that follows. Attributes NavUriFramgent and TaskID must always be set as follows: NavUriFragment="encodedLaunchUri=%s" TaskID="_default".

  3. Handle the MapUri event. When the app is launched from a URI association, a deep link URI takes the user to your application. Session information from a website tagged with the Webtrends id_broadcaster.js is appended to the URI as a query parameter. Pass the URI used to launch the app to WTDataCollector.Instance.setSessionInfo(uri) inside your AssociationUriMapper class.
    using System;
    using System.Windows.Navigation;
    namespace sdkAutoLaunch
        class AssociationUriMapper : UriMapperBase
            public override Uri MapUri(Uri uri)
                return new Uri("/MainPage.xaml", UriKind.Relative);
    For more information, see Auto-launching apps using file and URI associations for Windows Phone 8