diff --git a/_config.yml b/_config.yml index fb6e996934..8b10839005 100644 --- a/_config.yml +++ b/_config.yml @@ -14,6 +14,8 @@ linkedin_username: # Add your google-analytics ID here to activate google analytics google_analytics: UA-XXXXXXXXX-X # out your google-analytics code +# Opt out of tracking +disable_tracking: false # Build settings markdown: kramdown diff --git a/_includes/head.html b/_includes/head.html index 7848045415..a5be42acda 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -10,6 +10,16 @@ + + + + + + {% if page.background && page.background != blank %} + + {% endif %} + @@ -19,4 +29,7 @@ + {% if site.layouts contains 'overrides.styles' %} + {% include overrides.styles.html %} + {% endif %} diff --git a/_includes/overrides.styles.html b/_includes/overrides.styles.html new file mode 100644 index 0000000000..df59e25591 --- /dev/null +++ b/_includes/overrides.styles.html @@ -0,0 +1,3 @@ + + + diff --git a/_layouts/default.html b/_layouts/default.html index 6fc9a457ee..cf14a0270e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -14,7 +14,9 @@ {% include scripts.html %} - {% include google-analytics.html %} + {% unless site.disable_tracking %} + {% include google-analytics.html %} + {% endunless %}