-
Home
-
ExactMetrics – Google Analytics Dashboard for WordPress (Website Stats Plugin)
- Tips
How to Hide Google Analytics Dashboard for WP (GADWP) Admin Menus
function plt_hide_google_analytics_dashboard_for_wp_menus() {
//Hide "Dashboard → ExactMetrics".
remove_submenu_page('index.php', 'admin.php?page=exactmetrics_reports');
//Hide "ExactMetrics".
remove_menu_page('exactmetrics_reports');
//Hide "ExactMetrics → Setup Checklist15".
remove_submenu_page('exactmetrics_reports', 'exactmetrics_settings#/setup-checklist');
//Hide "ExactMetrics → Reports".
remove_submenu_page('exactmetrics_reports', 'exactmetrics_reports');
//Hide "ExactMetrics → Settings".
remove_submenu_page('exactmetrics_reports', 'exactmetrics_settings');
//Hide "ExactMetrics → Site Notes".
remove_submenu_page('exactmetrics_reports', 'http://127.0.0.1/wp-admin/admin.php?page=exactmetrics_settings#/site-notes');
//Hide "ExactMetrics → AI Insights".
remove_submenu_page('exactmetrics_reports', 'admin.php?page=exactmetrics_reports#/ai-insights');
//Hide "ExactMetrics → Conversations AI".
remove_submenu_page('exactmetrics_reports', 'admin.php?page=exactmetrics_reports#/ai-insights/chat');
//Hide "ExactMetrics → Popular Posts".
remove_submenu_page('exactmetrics_reports', 'http://127.0.0.1/wp-admin/admin.php?page=exactmetrics_settings#/popular-posts');
//Hide "ExactMetrics → User Journey".
remove_submenu_page('exactmetrics_reports', 'admin.php?page=exactmetrics_reports#/user-journey-report');
//Hide "ExactMetrics → SEO".
remove_submenu_page('exactmetrics_reports', 'http://127.0.0.1/wp-admin/admin.php?page=exactmetrics_settings#/seo');
//Hide "ExactMetrics → Tools".
remove_submenu_page('exactmetrics_reports', 'http://127.0.0.1/wp-admin/admin.php?page=exactmetrics_settings#/tools');
//Hide "ExactMetrics → Addons".
remove_submenu_page('exactmetrics_reports', 'http://127.0.0.1/wp-admin/admin.php?page=exactmetrics_settings#/addons');
//Hide "ExactMetrics → UserFeedbackNEW".
remove_submenu_page('exactmetrics_reports', 'http://127.0.0.1/wp-admin/admin.php?page=exactmetrics_settings#/userfeedback');
//Hide "ExactMetrics → About Us".
remove_submenu_page('exactmetrics_reports', 'http://127.0.0.1/wp-admin/admin.php?page=exactmetrics_settings#/about');
//Hide "ExactMetrics → Growth Tools".
remove_submenu_page('exactmetrics_reports', 'http://127.0.0.1/wp-admin/admin.php?page=exactmetrics_settings#/growth-tools');
//Hide "ExactMetrics → Upgrade to Pro".
remove_submenu_page('exactmetrics_reports', 'https://www.exactmetrics.com/lite/?utm_source=liteplugin&utm_medium=admin-menu&utm_campaign=submenu&utm_content=8.3.1');
}
add_action('admin_menu', 'plt_hide_google_analytics_dashboard_for_wp_menus', 12);
Where do I put this code?
How to Hide the "ExactMetrics" Dashboard Widget
function plt_hide_google_analytics_dashboard_for_wp_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "ExactMetrics" widget.
remove_meta_box('exactmetrics_reports_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_google_analytics_dashboard_for_wp_dashboard_widgets', 20);