From 1be28dff0175407b44d615ac6c755293c2bbe722 Mon Sep 17 00:00:00 2001 From: QWp6t Date: Wed, 1 Apr 2015 17:46:56 -0700 Subject: [PATCH] Remove Google Analytics --- CHANGELOG.md | 3 +++ README.md | 3 +-- lib/config.php | 6 ------ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e6eaeb..4fbe511 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### HEAD +* Remove mention of Google Analytics from the config ([#1384](https://github.com/roots/sage/issues/1384)) + ### 8.1.1: March 31st, 2015 * Remove pleeease dependency in favor of vanilla gulp-autoprefixer and gulp-minify-css ([#1402](https://github.com/roots/sage/issues/1402)) * Fix `gulp --production` race condition ([#1398](https://github.com/roots/sage/issues/1398)) diff --git a/README.md b/README.md index 5a5f445..6f21d0c 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,6 @@ For more installation notes, refer to the [Install gulp and Bower](#install-gulp * [HTML5 Boilerplate](http://html5boilerplate.com/) * The latest [jQuery](http://jquery.com/) via Google CDN, with a local fallback * The latest [Modernizr](http://modernizr.com/) build for feature detection - * An optimized Google Analytics snippet * ARIA roles and microformats * Cleaner HTML output of navigation menus * Posts use the [hNews](http://microformats.org/wiki/hnews) microformat @@ -57,7 +56,7 @@ define('WP_ENV', 'development'); ## Configuration -Edit `lib/config.php` to enable or disable theme features and to define a Google Analytics ID. +Edit `lib/config.php` to enable or disable theme features Edit `lib/init.php` to setup navigation menus, post thumbnail sizes, post formats, and sidebars. diff --git a/lib/config.php b/lib/config.php index 702653d..dbf2af9 100644 --- a/lib/config.php +++ b/lib/config.php @@ -10,18 +10,12 @@ use Roots\Sage\ConditionalTagCheck; add_theme_support('soil-clean-up'); // Enable clean up from Soil add_theme_support('soil-relative-urls'); // Enable relative URLs from Soil add_theme_support('soil-nice-search'); // Enable nice search from Soil -add_theme_support('soil-google-analytics'); // Enable H5BP's Google Analytics snippet add_theme_support('bootstrap-gallery'); // Enable Bootstrap's thumbnails component on [gallery] add_theme_support('jquery-cdn'); // Enable to load jQuery from the Google CDN /** * Configuration values */ -if (!defined('GOOGLE_ANALYTICS_ID')) { - // Format: UA-XXXXX-Y (Note: Universal Analytics only) - define('GOOGLE_ANALYTICS_ID', ''); -} - if (!defined('WP_ENV')) { // Fallback if WP_ENV isn't defined in your WordPress config // Used in lib/assets.php to check for 'development' or 'production'