Merge pull request #122 from cjerrington/patch-3

improve the quality of analytics
This commit is contained in:
Barry Clark 2015-03-01 18:42:54 -05:00
commit 3e761139cc
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
ga('send', 'pageview', {
'page': '{{ page.url }}',
'title': '{{ page.title | replace: "'", "\\'" }}'
});
</script>
<!-- End Google Analytics -->
{% endif %}