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