improve the quality of anaytics
Improve the quality of Google Analytics as found in: http://veithen.github.io/2015/01/05/jekyll-improving-ga-data-quality.html Reduce and eliminate referrer spam in Google Analytics as found in: http://veithen.github.io/2015/01/21/referrer-spam.htmlimprove the quality of analytics http://veithen.github.io/2015/01/05/jekyll-improving-ga-data-quality.html
This commit is contained in:
parent
e29df684bd
commit
9f23e44cbe
|
@ -5,9 +5,12 @@
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
(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)
|
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');
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||||
|
|
||||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview', {
|
||||||
|
'page': '{{ page.url }}',
|
||||||
|
'title': '{{ page.title | replace: "'", "\\'" }}'
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<!-- End Google Analytics -->
|
<!-- End Google Analytics -->
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue