I have an ASP.NET MVC (3) app and I\'ve set Google analytics up. The problem is that every time I run from Visual Studio the Google script starts gathering data, which of course
You could also use HttpContext to only include the GA script if running in debug mode:
@if (!HttpContext.Current.IsDebuggingEnabled) { }