{% if jekyll.environment == 'production' and site.production_google_analytics %} {%- assign GA_ID = site.production_google_analytics -%} {% endif %} {% if jekyll.environment == 'development' and site.development_google_analytics %} {%- assign GA_ID = site.development_google_analytics -%} {% endif %}