Class provides all options available when sending data to Mixpanel.
Inheritance: MixpanelClientOptions
Exemple #1
0
        static TrackerOptions GetOptions()
        {
            TrackerOptions options = new TrackerOptions();
            options.SetEventTime = true;

            if (!String.IsNullOrEmpty(_proxyUrl))
            {
                options.ProxyUrl = _proxyUrl;
            }

            return options;
        }
 /// <summary>
 /// Creates a new Mixpanel tracker for a given API token
 /// </summary>
 /// <param name="token">The API token for MixPanel</param>
 /// <param name="http">An implementation of IMixpanelHttp, <see cref="MixpanelHttp"/>
 /// Determines if class names and properties will be serialized to JSON literally.
 /// If false (the default) spaces will be inserted between camel-cased words for improved
 /// readability on the reporting side.
 /// </param>
 /// <param name="options">Optional: Specific options for the API <see cref="TrackerOptions"/></param>
 public MixpanelTracker(string token, IMixpanelHttp http = null, TrackerOptions options = null)
     : base(token, http)
 {
     _options = options ?? new TrackerOptions();
 }