From 7db07acc4fb8f5489ad4b7f4c5cde3af049c22a6 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Wed, 29 Nov 2017 10:01:59 -0800 Subject: [PATCH] website_analytics (#1272) --- site/README.md | 6 ++++++ site/_config.yml | 1 + site/_includes/google-analytics.html | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 site/_includes/google-analytics.html diff --git a/site/README.md b/site/README.md index f670c80bf..b029ac893 100644 --- a/site/README.md +++ b/site/README.md @@ -15,6 +15,12 @@ To view the site, run: bundle exec jekyll serve ``` +To view the site with Google Analytics, run: + +``` +JEKYLL_ENV=production bundle exec jekyll serve +``` + ## Deployment To deploy the site, run diff --git a/site/_config.yml b/site/_config.yml index 5f7f5d4a0..24ec957d2 100644 --- a/site/_config.yml +++ b/site/_config.yml @@ -20,6 +20,7 @@ description: > # this means to ignore newlines until "baseurl:" baseurl: "" # the subpath of your site, e.g. /blog url: "" # the base hostname & protocol for your site, e.g. http://example.com github_username: ray-project +google_analytics: true # Build settings markdown: kramdown diff --git a/site/_includes/google-analytics.html b/site/_includes/google-analytics.html new file mode 100644 index 000000000..a7b5a11e4 --- /dev/null +++ b/site/_includes/google-analytics.html @@ -0,0 +1,11 @@ + + + + +