mirror of
https://github.com/hacks-guide/minimal-mistakes.git
synced 2024-11-23 08:49:50 +00:00
79d0b75683
For documentation see https://developers.google.com/analytics/devguides/collection/gtagjs/ and https://support.google.com/analytics/answer/7538414.
14 lines
468 B
HTML
14 lines
468 B
HTML
{% if jekyll.environment == 'production' and site.analytics.provider and page.analytics != false %}
|
|
|
|
{% case site.analytics.provider %}
|
|
{% when "google" %}
|
|
{% include /analytics-providers/google.html %}
|
|
{% when "google-universal" %}
|
|
{% include /analytics-providers/google-universal.html %}
|
|
{% when "google-gtag" %}
|
|
{% include /analytics-providers/google-gtag.html %}
|
|
{% when "custom" %}
|
|
{% include /analytics-providers/custom.html %}
|
|
{% endcase %}
|
|
|
|
{% endif %} |