title: Kentico v9 how can i detect when a user is in CMS desk with JavaScript
body: <p>I'm in the process of writing some JS for custom event tracking in Google Analytics. I want to avoid event tracking while the site is being updated.</p>
  
  <p>I do have access to change the code behind of my main .Master page so add an attribute to the body that than i can check against.</p>
  
  <p>The Javascript webpart may not be an option, since this is global code, rather template specific.</p>