Esempio n. 1
0
        public void InitTracker(TrackerConfig config)
        {
            Config = config;
            Config.Validate();

            var analyticsEngine = AnalyticsEngine.Current;

            analyticsEngine.IsDebugEnabled          = Config.Debug;
            GAServiceManager.Current.DispatchPeriod = Config.DispatchPeriod;
            tracker = analyticsEngine.GetTracker(Config.TrackingId);
            tracker.SetStartSession(Config.SessionTimeout.HasValue);
            tracker.IsUseSecure          = Config.UseSecure;
            tracker.AppName              = Config.AppName;
            tracker.AppVersion           = Config.AppVersion;
            tracker.AppId                = Config.AppId;
            tracker.AppInstallerId       = Config.AppInstallerId;
            tracker.IsAnonymizeIpEnabled = Config.AnonymizeIp;
            tracker.SampleRate           = Config.SampleFrequency;
            tracker.IsDebug              = Config.Debug;
        }
Esempio n. 2
0
 public TrackerFactory(TrackerConfig config)
 {
     InitTracker(config);
 }