google analyics liquid tag added

This commit is contained in:
Mayankm96 2017-11-04 07:36:57 +05:30
parent 02fcb9d434
commit db3257ff54
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,8 @@ scholar_authorid: # put your google scholar author id
contact_note: >
You can even add a little note about which of these is the best way to reach you.
google_analytics: UA-XXXXXXXXX # out your google-analytics code
# -----------------------------------------------------------------------------
# Blog
# -----------------------------------------------------------------------------

View File

@ -31,6 +31,6 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXXX-X', 'auto');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>