{% include JB/is_production %}

{% if is_production and site.JB.analytics.provider and page.JB.analytics != false %}

{% case site.JB.analytics.provider %}
{% when "gauges" %}
  {% include JB/analytics-providers/gauges %}
{% when "google" %}
  {% include JB/analytics-providers/google %}
{% when "getclicky" %}
  {% include JB/analytics-providers/getclicky %}
{% when "mixpanel" %}
  {% include JB/analytics-providers/mixpanel %}
{% when "piwik" %}
  {% include JB/analytics-providers/piwik %}
{% when "custom" %}
  {% include custom/analytics %}
{% endcase %}

{% endif %}
