Merge pull request #864 from schrapel/master

Hide Google Analytics to admins to prevent obscured data.
This commit is contained in:
Ben Word
2013-08-31 16:28:56 -07:00

View File

@@ -61,6 +61,6 @@ function roots_google_analytics() { ?>
</script>
<?php }
if (GOOGLE_ANALYTICS_ID) {
if (GOOGLE_ANALYTICS_ID && !current_user_can('manage_options')) {
add_action('wp_footer', 'roots_google_analytics', 20);
}