Prevent Google Analytics from Tracking Admin Pages

Prevent Google Analytics

Want to avoid Google Analytics from tracking your Admin pages? This handy snippet will prevent Google Analytics from tracking your Admin pages or anything else that you wish. Simply add this WordPress snippets after <body> starting tag <?php if (!current_user_can(‘level_10’)) { ?> /* Google Analytics Code */ <?php } ?> Here, level_10 is WordPress admin label…