• Hi guys. Quick q about the top admin bar. Can I disable the Site Kit dropdown stats for my editors? I only want admins to see the analytics stuff so it doesn’t clutter their view. Pls lmk.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Adam Dunnage

    (@adamdunnage)

    Hello @gilbertsearcy, thanks for your question on Site Kit in the toolbar. While you can’t disable this for specific user roles, it can be disabled for a user profile from Administration > Users > Your Profile > Show Toolbar when viewing the site. This will disable the entire toolbar and not just the Site Kit stats in it.

    The Site Kit stats in the toolbar can be disabled entire by an administrator by going to Site Kit > Settings > Admin Settings > Display relevant page stats in the Admin bar.

    As mentioned above, you can’t disable this per user group but I can certainly bring this up for discussion with the team. More information on this can be found in our Site Kit in the WordPress toolbar page.

    Thanks for your question.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @gilbertsearcy I wanted to follow back up on this with you to inform you that we do in fact have a way you can achieve this. We have a a filter which you can use to do this and specify user roles you’d like to exclude the Site Kit toolbar from.

    Here is an example of the filter for this which would exclude this for all editiors:

    add_filter( 'googlesitekit_show_admin_bar_menu', function( $show ) { return current_user_can( 'editor' ) ? false : $show; });

    This filter can be added to your functions.php file. If you need assistance with doing that then reach out to your hosting provider who should be able to help you do that.

    I hope this helps you to achieve what you were looking to do and let me know if you have any questions on this.

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

You must be logged in to reply to this topic.