From 9cba493280047f125d114db3cb7e47b7fef595df Mon Sep 17 00:00:00 2001 From: Justin Walsh Date: Fri, 21 Jun 2013 14:36:50 -0500 Subject: [PATCH] Adding google analytics --- README.md | 7 +++++++ docs/00_Getting_Started.md | 7 +++++++ docs/config.json | 1 + index.php | 13 +++++++++++++ libs/functions.php | 3 ++- 5 files changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6bc1876..136c15a 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,13 @@ Include custom links in the sidebar. } } +###Google Analytics: +This will embed the google analytics tracking code. + + { + "google_analytics": "UA-XXXXXXXXX-XX" + } + ## Running Locally You can run the docs locally using Grunt.js I assume you are familiar with how to use Grunt and have the latest version of PHP 5.4 installed which is able to run a webserver. diff --git a/docs/00_Getting_Started.md b/docs/00_Getting_Started.md index 6bc1876..136c15a 100644 --- a/docs/00_Getting_Started.md +++ b/docs/00_Getting_Started.md @@ -141,6 +141,13 @@ Include custom links in the sidebar. } } +###Google Analytics: +This will embed the google analytics tracking code. + + { + "google_analytics": "UA-XXXXXXXXX-XX" + } + ## Running Locally You can run the docs locally using Grunt.js I assume you are familiar with how to use Grunt and have the latest version of PHP 5.4 installed which is able to run a webserver. diff --git a/docs/config.json b/docs/config.json index 5dad986..0cf3c1a 100644 --- a/docs/config.json +++ b/docs/config.json @@ -5,6 +5,7 @@ "theme": "navy", "repo": "justinwalsh/daux.io", "twitter": ["justin_walsh", "todaymade"], + "google_analytics": "UA-12653604-10", "links": { "Github Repo": "https://github.com/justinwalsh/daux.io", "Help/Support/Bugs": "https://github.com/justinwalsh/daux.io/issues", diff --git a/index.php b/index.php index ad816a2..aec1e96 100644 --- a/index.php +++ b/index.php @@ -266,5 +266,18 @@ if ($homepage && $homepage_url !== '/') { + + + + \ No newline at end of file diff --git a/libs/functions.php b/libs/functions.php index 2a379f4..79011cb 100644 --- a/libs/functions.php +++ b/libs/functions.php @@ -34,7 +34,8 @@ function get_options() { 'repo' => false, 'twitter' => array(), 'links' => array(), - 'colors' => false + 'colors' => false, + 'google_analytics' => false ); // Load User Config