From db3257ff54df68f3ee2a285d9b0c9437aeb46608 Mon Sep 17 00:00:00 2001 From: Mayankm96 Date: Sat, 4 Nov 2017 07:36:57 +0530 Subject: [PATCH 1/2] google analyics liquid tag added --- _config.yml | 2 ++ _includes/hemline.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index fc3fb13dbb94c..30d5146da5966 100644 --- a/_config.yml +++ b/_config.yml @@ -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 # ----------------------------------------------------------------------------- diff --git a/_includes/hemline.html b/_includes/hemline.html index a96fb117d1312..23ccad58b4616 100644 --- a/_includes/hemline.html +++ b/_includes/hemline.html @@ -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'); From 0562ac360ab2f87f8e26b3c07aa7364684b9804c Mon Sep 17 00:00:00 2001 From: Mayankm96 Date: Sat, 4 Nov 2017 07:37:39 +0530 Subject: [PATCH 2/2] fixed instruction for User deployment --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1863ed236f3b1..1f9838301badd 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Using `master` for deployment is a convention for [user and organization pages]( **Note:** when deploying your user or organization page, make the `_config.yml` has `url` and `baseurl` fields as follows. ``` -url: .github.io +url: # should be empty baseurl: # should be empty ```