This project has moved and is read-only. For the latest updates, please go here.

Disable tracking during debug mode?

Jan 6, 2014 at 5:25 PM
Hello,
is it possible to disable tracking during debug mode?

I tried it with this code, but doesn't work...
#if DEBUG
GoogleAnalytics.AnalyticsEngine.Current.CloseTracker(GoogleAnalytics.AnalyticsEngine.Current.GetTracker("UA-xxx"));
#endif
Jan 6, 2014 at 5:27 PM
I use this:
#if DEBUG
            GoogleAnalytics.AnalyticsEngine.Current.AppOptOut = true;
#endif
Marked as answer by norm2005 on 1/6/2014 at 9:43 AM
Jan 6, 2014 at 5:43 PM
perfect, thanks!