Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }