Merge pull request #864 from schrapel/master
Hide Google Analytics to admins to prevent obscured data.
This commit is contained in:
@@ -61,6 +61,6 @@ function roots_google_analytics() { ?>
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
if (GOOGLE_ANALYTICS_ID) {
|
if (GOOGLE_ANALYTICS_ID && !current_user_can('manage_options')) {
|
||||||
add_action('wp_footer', 'roots_google_analytics', 20);
|
add_action('wp_footer', 'roots_google_analytics', 20);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user