Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

add google analytics; closes #2

Christopher Hiller66df628bed1c
diff --git a/_includes/ga.html b/_includes/ga.html
new file mode 100644
index 00000000..94bc6dc8
--- /dev/null
+++ b/_includes/ga.html
@@ -0,0 +1,10 @@
+<script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-65024936-1', 'auto');
+ ga('send', 'pageview');
+
+</script>
diff --git a/_layouts/default.html b/_layouts/default.html
index f71fd1fa..1e338b2e 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -12,7 +12,7 @@
</section>
{% include footer.html %}
-
+ {% include ga.html %}
</body>
</html>