Commit d2945f9c authored by Edu Garcia's avatar Edu Garcia

Made Google Analytics optional and configurable

parent 349f2cf5
......@@ -39,7 +39,8 @@ The main settings can be found inside the `_config.yml` file:
- **url:** your url
- **paginate:** the amount of posts displayed on homepage
- **navigation:** these are the links in the main site navigation
- **social** diverse social media usernames
- **social** diverse social media usernames (optional)
- **google_analytics** Google Analytics key (optional)
## License
......
......@@ -23,3 +23,5 @@ social:
twitter: brianmaierjr
facebook: brianmaierjr
email: brimaidesigns@gmail.com
google_analytics: "UA-58263416-1"
......@@ -5,7 +5,7 @@
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-58263416-1', 'auto');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
......@@ -19,5 +19,5 @@
<!-- Modernizr -->
<script src="{{ "/assets/js/modernizr.custom.15390.js" | prepend: site.baseurl }}" type="text/javascript"></script>
{% include google_analytics.html %}
{% if site.google_analytics %} {% include google_analytics.html %} {% endif %}
</head>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment