本文整理汇总了C#中Tracker.EnableExceptionReporting方法的典型用法代码示例。如果您正苦于以下问题:C# Tracker.EnableExceptionReporting方法的具体用法?C# Tracker.EnableExceptionReporting怎么用?C# Tracker.EnableExceptionReporting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tracker
的用法示例。
在下文中一共展示了Tracker.EnableExceptionReporting方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GoogleAnalyticsManager
public GoogleAnalyticsManager ()
{
var analytics = GoogleAnalytics.GetInstance (Application.Context);
#if (DEBUG)
analytics.SetDryRun(true);
#endif
_tracker = analytics.NewTracker ("UA-54114842-3");
_tracker.EnableExceptionReporting (true);
}
示例2: Initialize
public void Initialize(Context AppContext)
{
GAInstance = GoogleAnalytics.GetInstance(AppContext.ApplicationContext);
GAInstance.SetLocalDispatchPeriod(10);
GATracker = GAInstance.NewTracker(TrackingId);
GATracker.EnableExceptionReporting(true);
GATracker.EnableAdvertisingIdCollection(true);
GATracker.EnableAutoActivityTracking(true);
}
示例3: GetTracker
public Tracker GetTracker(AnalyticsConfiguration configuration)
{
if (Tracker == null) {
var analytics = GoogleAnalytics.GetInstance (Application.Context);
analytics.Logger.LogLevel = (int)configuration.LogLevel;
analytics.SetLocalDispatchPeriod (configuration.DispatchPeriod);
analytics.SetDryRun (configuration.DryRun);
Tracker = analytics.NewTracker (configuration.TrackingId);
Tracker.SetSampleRate (configuration.SampleFrequency);
Tracker.SetAnonymizeIp (configuration.AnonymizeIp);
Tracker.EnableExceptionReporting (configuration.ReportUncaughtExceptions);
if (!string.IsNullOrEmpty (configuration.AppName)) {
Tracker.SetAppName (configuration.AppName);
}
if (!string.IsNullOrEmpty (configuration.AppVersion)) {
Tracker.SetAppVersion (configuration.AppVersion);
}
}
return Tracker;
}