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

View file

@ -7,7 +7,10 @@
})(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 %}