Excluding logged-in users by user role

You can exclude users other than admins (who are excluded automatically) from Burst Statistics. For example, if you’re using a forum but don’t want to use the data. If you want to exclude account use from your other statistics, you can use the below snippet to exclude users based on their user role. You can delete the roles in the array that you don’t need.

We recommend using an MU plugin for this purpose.