Skip to content

Apache DataFusion SQL Query Engine

ARROW-950: [Website] Add Google Analytics tag to site

Wes McKinney37c27b9b376d
diff --git a/site/_includes/analytics.html b/site/_includes/analytics.html
new file mode 100644
index 0000000000..db0e0b762f
--- /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>
diff --git a/site/_includes/top.html b/site/_includes/top.html
index 988ae6c742..af895c9d43 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>