public static void TrackPageView(string page, string title) { if(!Config.Instance.GoogleAnalytics) return; _pageViewRequest = Session.CreatePageViewRequest(page, title); _pageViewRequest.Send(); }
public static void TrackPageView(string page, string title) { if (!Config.Instance.GoogleAnalytics) { return; } _pageViewRequest = Session.CreatePageViewRequest(page, title); _pageViewRequest.Send(); }
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(); }
private static void ScreenActivated(IAnalyticsPageViewRequest request) { request.Send(); }