Prevent google analytics being loaded locally

This commit is contained in:
Thomas Busby
2018-05-26 15:49:36 +02:00
parent ad6fb2cf02
commit 433db3ad19
2 changed files with 14 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ description: Arise, you have nothing to lose but your barbed wire fences!
author: cryptoanarchy.wiki
github: https://github.com/cryptoanarchywiki/cryptoanarchywiki.github.io
about: Arise, you have nothing to lose but your barbed wire fences!
disqus_shortname: stackproblems
disqus_shortname:
google_analytics: UA-XXXXXXXX-Y
avatar_url: /static/img/avatar.jpg
@@ -25,10 +25,10 @@ social:
share:
twitter_username: _cryptoanarchy
fb_appid: 1749788565247320
fb_appid:
urls:
- text: About Me
- text: About Us
url: /about/
- text: My Projects
url: /projects/

View File

@@ -116,6 +116,7 @@ layout: compress
<link rel="stylesheet" href="/static/css/projects.css">
<link rel="stylesheet" href="/static/css/main.css">
{% if jekyll.environment == "production" %}
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
@@ -126,6 +127,7 @@ layout: compress
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</head>
<body>
<div class="container">