Google Analytics is an essential tool for the website administrator to track the site visitors. You can easily install and setup a Google Analytics plugin and start monitoring users' behavior on the site. However, the site administrators also want to seclude or disable themselves from the original visitors while they are checking the site contents.
❓Why do we need to disable it?
Google Analytics is built to track the original visitors' actions on your website. As a website administrator, you may need to visit your site and conduct experiments on its content. So, if the Google Analytics tracking system starts tracking your visits, then eventually it will generate some misleading reports based on those test visits. For that reason, we need to disable it for the administrator or other selected user roles.
✅ Steps to disable Google Analytics
This quick tutorial shows the steps to disable the GTM4WP plugin for the logged-in users.
Step 01: Log in to the WordPress admin panel dashboard.
Step 02: Navigate to the Settings>>Google Tag Manager.
Step 03: From the tabs area, click on the Advanced Tab.
Step 04: Scroll down a little bit, and you will get the options for setting up permission for the user group.
Step 05: Finally, click on the Save Changes button to save the settings. Now, for all the administrator users, GTA4WP will not be triggered.
In conclusion, it is always a good practice to exclude tracking for the administrator or other selected roles' visits. By using the above steps, Google Analytics will generate actual reports for your website visitors' behavior. 🥇