From 1a7017c1a7cdaf36f5723c3545633aa3b8cab335 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 10 Feb 2013 19:35:43 -0600 Subject: [PATCH] Close #680 - Move Google Analytics to scripts.php --- doc/templates.md | 2 -- lib/scripts.php | 13 +++++++++++++ templates/footer.php | 11 +---------- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/doc/templates.md b/doc/templates.md index b09d57a..e118370 100644 --- a/doc/templates.md +++ b/doc/templates.md @@ -27,8 +27,6 @@ The `content-single.php` template is included by single post templates in the th `footer.php` includes the Footer sidebar area and displays the site copyright information. -Also included is the [asynchronous Google Analytics snippet](http://mathiasbynens.be/notes/async-analytics-snippet) from HTML5 Boilerplate if an ID is defined in `config.php`. - ### head.php `head.php` includes everything in the ``. diff --git a/lib/scripts.php b/lib/scripts.php index c444135..1e21047 100644 --- a/lib/scripts.php +++ b/lib/scripts.php @@ -67,3 +67,16 @@ function roots_jquery_local_fallback($src, $handle) { if (!is_admin()) { add_filter('script_loader_src', 'roots_jquery_local_fallback', 10, 2); } + +function roots_google_analytics() { ?> + + - - - - - \ No newline at end of file +