We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1abce22 commit dc1fd2fCopy full SHA for dc1fd2f
docs/_includes/GoogleAnalytics.html
@@ -0,0 +1,10 @@
1
+{% if site.analyticsId %}
2
+<!-- Google tag (gtag.js) -->
3
+<script async src="https://www.googletagmanager.com/gtag/js?id={{site.analyticsId}}"></script>
4
+<script>
5
+ window.dataLayer = window.dataLayer || [];
6
+ function gtag(){dataLayer.push(arguments);}
7
+ gtag('js', new Date());
8
+ gtag('config', '{{site.analyticsId}}');
9
+</script>
10
+{% endif %}
0 commit comments