Skip to content

Commit

Permalink
Merge pull request barryclark#122 from cjerrington/patch-3
Browse files Browse the repository at this point in the history
improve the quality of analytics
  • Loading branch information
barryclark committed Mar 1, 2015
2 parents 7566368 + 1d3b428 commit 2f9589b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _includes/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit 2f9589b

Please sign in to comment.