mirror of
https://github.com/jimeh/commonflow.org.git
synced 2026-02-19 05:46:40 +00:00
Add Google Analytics
This commit is contained in:
@@ -3,6 +3,7 @@ description: >
|
||||
An attempt to gather a sensible selection of the most common usage patterns of
|
||||
git into a single and concise specification.
|
||||
author: Jim Myhrberg
|
||||
hostname: commonflow.org
|
||||
url: https://commonflow.org
|
||||
|
||||
current_version: 1.0.0-rc.2
|
||||
|
||||
10
_includes/analytics.html
Normal file
10
_includes/analytics.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<script>
|
||||
if (window.location.hostname == "{{ site.hostname }}") {
|
||||
(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','https://www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', 'UA-102330905-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
} else { _gaq = []; };
|
||||
</script>
|
||||
@@ -44,5 +44,6 @@
|
||||
</div>
|
||||
</div>
|
||||
{% js main %}
|
||||
{% include analytics.html %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user