Repository: arrow Updated Branches: refs/heads/master 8ceee5662 -> 67c631740
ARROW-950: [Website] Add Google Analytics tag to site I created this GA property. I will be happy to give access to any PMC who wishes to look at the analytics data. It would be better to be collecting the site visitor data than not. Author: Wes McKinney <wes.mckin...@twosigma.com> Closes #1158 from wesm/ARROW-950 and squashes the following commits: fd60e834 [Wes McKinney] Add Google Analytics tag to site Project: http://git-wip-us.apache.org/repos/asf/arrow/repo Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/67c63174 Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/67c63174 Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/67c63174 Branch: refs/heads/master Commit: 67c631740b4c3cc895a712a5f6eed9dc7185e942 Parents: 8ceee56 Author: Wes McKinney <wes.mckin...@twosigma.com> Authored: Wed Oct 4 16:06:49 2017 -0400 Committer: Wes McKinney <wes.mckin...@twosigma.com> Committed: Wed Oct 4 16:06:49 2017 -0400 ---------------------------------------------------------------------- site/_includes/analytics.html | 9 +++++++++ site/_includes/top.html | 3 +++ 2 files changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/arrow/blob/67c63174/site/_includes/analytics.html ---------------------------------------------------------------------- diff --git a/site/_includes/analytics.html b/site/_includes/analytics.html new file mode 100644 index 0000000..db0e0b7 --- /dev/null +++ b/site/_includes/analytics.html @@ -0,0 +1,9 @@ +<!-- Global Site Tag (gtag.js) - Google Analytics --> +<script async src="https://www.googletagmanager.com/gtag/js?id=UA-107500873-1"></script> +<script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments)}; + gtag('js', new Date()); + + gtag('config', 'UA-107500873-1'); +</script> http://git-wip-us.apache.org/repos/asf/arrow/blob/67c63174/site/_includes/top.html ---------------------------------------------------------------------- diff --git a/site/_includes/top.html b/site/_includes/top.html index 988ae6c..af895c9 100644 --- a/site/_includes/top.html +++ b/site/_includes/top.html @@ -17,4 +17,7 @@ integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> <script src="{{ site.baseurl }}/assets/javascripts/bootstrap.min.js"></script> + {% if jekyll.environment == 'production' %} + {% include analytics.html %} + {% endif %} </head>