diff --git a/docs/_config.yml b/docs/_config.yml index cdcf53c1..4288fb9c 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -14,6 +14,8 @@ copyright_url: "https://jetbrains.com" homepage: "https://jetbrains.com/mps" homepage_title: "JetBrains MPS" github-project: fisakov/mps-coderules +# Google Analytics +google_analytics: UA-124237176-1 # Build settings markdown: kramdown diff --git a/docs/_includes/google-analytics.html b/docs/_includes/google-analytics.html new file mode 100644 index 00000000..ffcfacdd --- /dev/null +++ b/docs/_includes/google-analytics.html @@ -0,0 +1,9 @@ + + + diff --git a/docs/_includes/head.html b/docs/_includes/head.html index b0532ed2..1b1637a0 100644 --- a/docs/_includes/head.html +++ b/docs/_includes/head.html @@ -3,6 +3,9 @@ {% endcomment %} +{% if site.google_analytics and jekyll.environment == 'production' %} +{% include google-analytics.html %} +{% endif %}