public Tracker(string trackingAccount, string trackingDomain, IAnalyticsSession analyticsSession) { TrackingAccount = trackingAccount; TrackingDomain = trackingDomain; AnalyticsSession = analyticsSession; CookieContainer = new CookieContainer(); ThrowOnErrors = false; CustomVariables = new CustomVariable[5]; _utmeGenerator = new UtmeGenerator(this); }
public void SetCustomVariable(int position, string name, string value) { if (position < 1 || position > 5) throw new ArgumentOutOfRangeException(string.Format("position {0} - {1}", position, "Must be between 1 and 5")); CustomVariables[position - 1] = new CustomVariable(name, value); }