public async Task <TrackingResult> TrackPageViewAsync(string pageTitle, string pageUrl)
        {
            var pageViewParameters = new PageView {
                DocumentTitle       = pageTitle,
                DocumentLocationUrl = pageUrl,
                CacheBuster         = AnalyticsSession.GenerateCacheBuster(),
                ViewportSize        = ViewportSize,
                ScreenResolution    = ScreenResolution,
                ClientId            = ClientId,
                UserId = UserId
            };

            return(await TrackAsync(pageViewParameters));
        }
        public async Task <TrackingResult> TrackScreenviewAsync(string screenName)
        {
            var screenviewParamenters = new ScreenviewTracking {
                ApplicationName    = appName,
                ApplicationId      = appId,
                ApplicationVersion = appVersion,
                ScreenName         = screenName,
                CacheBuster        = AnalyticsSession.GenerateCacheBuster(),
                ViewportSize       = ViewportSize,
                ScreenResolution   = ScreenResolution,
                ClientId           = ClientId,
                UserId             = UserId
            };

            return(await TrackAsync(screenviewParamenters));
        }
 public string GenerateCacheBuster()
 {
     return(_Session.GenerateCacheBuster());
 }