Skip to content

Commit 9f23e44

Browse files
author
Clayton Errington
committed
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
1 parent e29df68 commit 9f23e44

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

_includes/analytics.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
66
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
77
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
8-
8+
99
ga('create', '{{ site.google_analytics }}', 'auto');
10-
ga('send', 'pageview');
10+
ga('send', 'pageview', {
11+
'page': '{{ page.url }}',
12+
'title': '{{ page.title | replace: "'", "\\'" }}'
13+
});
1114
</script>
1215
<!-- End Google Analytics -->
1316
{% endif %}

0 commit comments

Comments
 (0)