title: Environments in Jekyll
body: <p>I'm a bit lost when dealing with environments using the Jekyll framework. I have a site that I wish to have a conditional to use google analytics in production.</p>
  
  <p>Currently I have:</p>
  
  <pre><code>{% if jekyll.environment == 'production' %}
   {% include analytics.html %}
  {% endif %}
  </code></pre>
  
  <p>Which displays nothing locally and on my server.</p>
  
  <p>I have run the <code>JEKYLL_ENV=production jekyll build</code> command locally as well.</p>
  
  <p>Currently my config file just has general SEO tags.</p>
  
  <p>Do I need to add the environments in the config file or setup two seperate config files?</p>