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 @@ + + + + +