Hide Google Analytics to admins to prevent obscured data.

This commit is contained in:
Toby
2013-08-30 10:34:33 +01:00
parent bdde0e5ae1
commit 409939bf82

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);
}