Skip to content

Commit 3e76113

Browse files
committed
Merge pull request barryclark#122 from cjerrington/patch-3
improve the quality of analytics
2 parents bc9199b + f2246dc commit 3e76113

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_includes/analytics.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
88

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)