title: How to catch 'ga is not defined' in your dev environments
body: <p>So I have my development environment, and every time I run the project, I have a javascript error in my console:</p>
  
  <p><code>ga is undefined</code></p>
  
  <p>Of course I am not at the correct domain so Google Analytics see this as an issue and I am fine with that, but it doesn't allow the rest of my Javascript to run so I have modals and other JS based functionality that stops working. </p>
  
  <p>My thought were I could just write a wrapper method and check for ga undefined. But before I do that I just wanted to see if there was a better solution or possibly different way of thinking about my setup.</p>
  
  <p>Cheers,</p>
  
  <p>Devin</p>