• Resolved celsomtrindade

    (@celsomtrindade)


    I’d like to know if there is any option to completely disable admin tracking sessions. For example, me, as an admin of a website, I go through a lot of pages and spend a lot of time online doing stuff. I’d like to NOT track this, since I’m not really doing anything but administrate the website. For small websites this can have a huge impact on the data.

    Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @celsomtrindade ,

    Currently, it’s not possible out of the box. But you can do this using a filter.

    // Should return true if you want to have tracking enabled, false to disable it.
    add_filter( 'beehive_google_enable_tracking', function( $tracking ) {
            // disable tracking for all users with Editor or higher role.
    	if ( current_user_can( 'editor' ) ) {
    		return false;
    	} else {
    		return true;
    	}
    });

    Above example will disable the tracking for users with editor capability. You can change that according to your requirements. I have also added this to our features request list.

    kind regards,
    Kasia

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @celsomtrindade

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Stop tracking admin user sessions’ is closed to new replies.