예제 #1
0
		public static void TrackPageView(string page, string title)
		{
			if(!Config.Instance.GoogleAnalytics)
				return;
			_pageViewRequest = Session.CreatePageViewRequest(page, title);
			_pageViewRequest.Send();
		}
예제 #2
0
 public static void TrackPageView(string page, string title)
 {
     if (!Config.Instance.GoogleAnalytics)
     {
         return;
     }
     _pageViewRequest = Session.CreatePageViewRequest(page, title);
     _pageViewRequest.Send();
 }
예제 #3
0
        public void ApplicationStart()
        {
            if (_analyticsSession == null)
            {
                _analyticsSession = new AnalyticsSession(Domain, GaCode);
            }

            _page = _analyticsSession.CreatePageViewRequest(
                "/",     // path
                "Main"); // page title

            _apptimer = _page.StartTiming("Application", "WPF", "ExecutionTime");

            _page.SendEvent("Application", "AppStart", string.Empty, "1");

            _page.Send();
        }
 public void End()
 {
     _page.Send();
 }
예제 #5
0
 private static void ScreenActivated(IAnalyticsPageViewRequest request)
 {
     request.Send();
 }