Tips on Customizing ExactMetrics – Google Analytics Dashboard for WordPress (Website Stats Plugin)

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 → Reports".
	remove_submenu_page('exactmetrics_reports', 'exactmetrics_reports');
	//Hide "ExactMetrics → Settings".
	remove_submenu_page('exactmetrics_reports', 'exactmetrics_settings');
	//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 → 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 → About Us".
	remove_submenu_page('exactmetrics_reports', 'http://127.0.0.1/wp-admin/admin.php?page=exactmetrics_settings#/about');
	//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=7.0.2');
}

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);