google analytics
This commit is contained in:
parent
132925cc29
commit
a0d0712e1c
|
@ -1,6 +1,6 @@
|
||||||
# My variables
|
# My variables
|
||||||
name: Micah Cowell
|
name: Micah Cowell
|
||||||
google_analytics: null
|
google_analytics: UA-39119359-12
|
||||||
google_verification: null
|
google_verification: null
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,18 +24,12 @@
|
||||||
|
|
||||||
{% if jekyll.environment == 'production' and site.google_verification%}
|
{% if jekyll.environment == 'production' and site.google_verification%}
|
||||||
<script>
|
<script>
|
||||||
(function(i, s, o, g, r, a, m) {
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
i['GoogleAnalyticsObject'] = r;
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
i[r] = i[r] || function() {
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
(i[r].q = i[r].q || []).push(arguments)
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||||
}, i[r].l = 1 * new Date();
|
|
||||||
a = s.createElement(o),
|
ga('create', '{{ site.google_verification }}', 'auto');
|
||||||
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', '{{ site.google_analytics }}', 'auto');
|
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue