From 5fd6a88ff9c8b6ef8d9ea50626e082d8a2c66c63 Mon Sep 17 00:00:00 2001 From: Dude Date: Wed, 29 Mar 2017 20:26:08 +0530 Subject: [PATCH] Optional google analytics --- _config.yml | 3 +++ _includes/analytics.html | 6 ++++++ _includes/scripts.html | 13 +++---------- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 _includes/analytics.html diff --git a/_config.yml b/_config.yml index 73f30ac..2e0be2f 100644 --- a/_config.yml +++ b/_config.yml @@ -25,4 +25,7 @@ linkedin: alandoe github: sharu725 twitter: '@webjeda' + +# Tracker +analytics: UA-83979019-1 #Update all the sections by editing the files inside _includes folder. diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 0000000..1309516 --- /dev/null +++ b/_includes/analytics.html @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/_includes/scripts.html b/_includes/scripts.html index 32bead0..f48ea08 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -3,13 +3,6 @@ - \ No newline at end of file + {% if site.analytics %} + {% include analytics.html %} + {% endif %} \ No newline at end of file