public static async Task <TrackingResult> TrackScreenviewAsync(this SimpleTracker tracker, string appName,
                                                                       string appId, string appVersion, string appInstallerId, string screenName, IDictionary <int, string> customDimensions)
        {
            var screenviewParamenters = new ScreenviewTracking
            {
                ApplicationName        = appName,
                ApplicationId          = appId,
                ApplicationVersion     = appVersion,
                ApplicationInstallerId = appInstallerId,
                ScreenName             = screenName,
            };

            screenviewParamenters.SetCustomDimensions(customDimensions);

            return(await tracker.TrackAsync(screenviewParamenters));
        }
Пример #2
0
        public static async Task <TrackingResult> TrackScreenviewAsync(this SimpleTracker tracker, string appName,
                                                                       string appId, string appVersion, string appInstallerId, string screenName, IDictionary <int, string> customDimensions)
        {
            var screenviewParamenters = new ScreenviewTracking
            {
                ApplicationName        = appName,
                ApplicationId          = appId,
                ApplicationVersion     = appVersion,
                ApplicationInstallerId = appInstallerId,
                DocumentHostName       = tracker.Hostname,
                ScreenName             = screenName,
                CacheBuster            = tracker.AnalyticsSession.GenerateCacheBuster()
            };

            screenviewParamenters.SetCustomDimensions(customDimensions);

            return(await tracker.TrackAsync(screenviewParamenters));
        }