ExactMetrics 10.3.0 has 31 actions and 154 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when ExactMetrics fires an action
add_action( 'exactmetrics_head', function() {
// Your code runs here.
}, 10, 1 );
// Change a value ExactMetrics is about to use
add_filter( 'editable_roles', function( $all_roles ) {
// Change $all_roles here.
return $all_roles;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Developer Alert: */ do_action( 'exactmetrics_head' ); -
/** * Filter: 'editable_roles' - Allows filtering of the roles shown within the * plugin (and elsewhere in WP as it's a WP filter) */ apply_filters( 'editable_roles', $all_roles ); -
/** * Filter whether the upgrader cleared the destination. */ apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] ); -
/** * Filter the package options before running an update. */ apply_filters( 'upgrader_package_options', $options ); -
/** * Filter the installation response after the installation has finished. */ apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result ); -
/** * Filter whether to return the package. */ apply_filters( 'upgrader_pre_download', false, $package, $this ); -
/** * Filter the install response before the installation has started. */ apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] ); -
/** * Fire when the upgrader process is complete. */ do_action( 'upgrader_process_complete', $this, $options['hook_extra'] ); -
/** * Filter the source file location for the upgrade package. */ apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] ); -
/** * This filter is documented in * wp-admin/includes/class-wp-automatic-updater.php */ apply_filters( 'auto_update_plugin', $default, $item ); -
/** * Deprecated Function Action. */ do_action( 'deprecated_function_run', $function, $version, $backtrace ); -
/** * Filters whether to trigger an error for deprecated functions. */ apply_filters( 'deprecated_function_trigger_error', true ); -
/** * Fires when a deprecated hook is called. */ do_action( 'deprecated_hook_run', $hook, $version, $message ); -
/** * Filters whether to trigger deprecated hook errors. */ apply_filters( 'deprecated_hook_trigger_error', true ); -
/** * Filters the data localized for the admin bar app. */ apply_filters( 'exactmetrics_admin_bar_localize_data', $admin_bar_data ); -
/** * Filter the cache groups the Vue reports may read from and write to. */ apply_filters( 'exactmetrics_backfill_cache_allowed_groups', $groups ); -
/** * Deprecated Message Filter. */ do_action( 'exactmetrics_deprecated_run', $message ); -
/** * Deprecated Error Trigger. */ apply_filters( 'exactmetrics_deprecated_trigger_error', $show_errors ); -
/** * Filter the eCommerce currency code. */ apply_filters( 'exactmetrics_ecommerce_currency', 'USD' ); -
/** * Filters the logo image for the email header. */ apply_filters_deprecated( 'exactmetrics_email_header_image', $img, '9.4.0', 'exactmetrics_email_header_logo', __( 'This filter is deprecated. Use exactmetrics_email_header_logo instead.', 'google-analytics-dashboard-for-wp' ) ); -
/** * Filter to intercept backfill cache requests with sample data. */ apply_filters( 'exactmetrics_get_backfill_cache', null, $cache_key, $cache_group, $extra_params ); -
/** * Developer Alert: */ apply_filters( 'exactmetrics_get_reports', array() ); -
/** * Filters the maximum byte size of the inline JED translations payload. */ apply_filters( 'exactmetrics_printable_translations_max_size', 1048576 ); -
/** * Filters the date formatted based on the locale. */ apply_filters( 'wp_date', $date, $format, $timestamp, $timezone ); -
apply_filters( 'exactmetrics_vue_reports_data', $report->get_data( $args ), $report_name, $report ); -
apply_filters( 'exactmetrics_api_url_custom_dashboard', 'https://app.exactmetrics.com/' ); -
apply_filters( 'exactmetrics_vue3_assets_url', plugins_url( $version_path . '/assets/vue3', EXACTMETRICS_PLUGIN_FILE ) ); -
apply_filters( 'exactmetrics_auth_request_body', $auth_request_args ); -
apply_filters( 'exactmetrics_localize_script_data', array( 'ajax' => admin_url( 'admin-ajax.php' ), 'assets_url' => apply_filters( 'exactmetrics_vue3_assets_url', plugins_url( $version_path . '/assets/vue3', EXACTMETRICS_PLUGIN_FILE ) ), 'plugin_assets_url' => plugins_url( 'assets/', EXACTMETRICS_PLUGIN_FILE ), 'nonce' => wp_create_nonce( 'mi-admin-nonce' ), 'cd_nonce' => wp_create_nonce( 'mi_custom_dashboard_ajax_nonce' ), 'network' => is_netwo... ); -
do_action( 'exactmetrics_after_update_settings', $setting, $value ); -
apply_filters( 'exactmetrics_ai_chat_api_url', 'https://ai-api.exactmetrics.com' ); -
apply_filters( 'exactmetrics_compatible_php_version', false ); -
apply_filters( 'exactmetrics_compatible_wp_version', false ); -
apply_filters( 'exactmetrics_frontend_gtag_script_async', true ); -
apply_filters( 'exactmetrics_get_licensing_url', 'https://www.exactmetrics.com' ); -
apply_filters( 'exactmetrics_maybe_authenticate_siteurl', $siteurl ); -
apply_filters( 'exactmetrics_ppc_tracking_skip_renewals', true ); -
apply_filters( 'exactmetrics_sample_data_enabled', false ); -
apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
apply_filters( 'exactmetrics_email_message', $message, $this ); -
apply_filters( 'exactmetrics_frontend_style_url', plugins_url( 'assets/css/frontend' . $suffix . '.css', EXACTMETRICS_PLUGIN_FILE ) ); -
apply_filters( 'exactmetrics_helpers_templates_locate', '', $template_name ); -
do_action( 'exactmetrics_tracking_after', $mode ); -
do_action( 'exactmetrics_tracking_before', $mode ); -
apply_filters( 'edd_get_price_option_amount', edd_sanitize_amount( $amount ), $download_id, $price_id ); -
apply_filters( 'exactmetrics_addon_slug', $slug ); -
apply_filters( 'exactmetrics_admin_notifications_has_access', $access ); -
apply_filters( 'exactmetrics_admin_only_settings', $settings ); -
do_action( 'exactmetrics_after_ajax_activate_addon', sanitize_text_field( $_POST['plugin'] ) ); -
do_action( 'exactmetrics_after_ajax_deactivate_addon', sanitize_text_field( $_POST['plugin'] ) ); -
do_action( 'exactmetrics_after_exclude_metabox', $skipped, $post ); -
do_action( 'exactmetrics_after_existing_upgrade_routine', $version ); -
do_action( 'exactmetrics_after_install_routine', $version ); -
do_action( 'exactmetrics_after_new_install_routine', EXACTMETRICS_VERSION ); -
apply_filters( 'exactmetrics_api_auth_get_type', $base ); -
apply_filters( 'exactmetrics_api_request_body', $body ); -
apply_filters( 'exactmetrics_api_url', $this->base_url ); -
apply_filters( 'exactmetrics_auth_success_redirect_url', $url ); -
apply_filters( 'exactmetrics_automated_promotion_date', wp_date('M d, Y h:i:s a') ); -
apply_filters( 'exactmetrics_dashboard_widget_options', $this->options ); -
apply_filters( 'exactmetrics_deactivation_survey_url', 'https://exactmetrics.com/wp-json/am-deactivate-survey/v1/deactivation-data' ); -
apply_filters( 'exactmetrics_disable_all_emails', false, $this ); -
apply_filters( 'exactmetrics_editor_scripts_url', plugins_url( $plugins_js_path, EXACTMETRICS_PLUGIN_FILE ) ); -
apply_filters( 'exactmetrics_editor_style_url', plugins_url( $plugins_style_path, EXACTMETRICS_PLUGIN_FILE ) ); -
apply_filters( 'exactmetrics_email_addresses_to_send', $emails ); -
do_action( 'exactmetrics_email_body', $email_parts['body'] ); -
apply_filters( 'exactmetrics_email_cc', $this->cc, $this ); -
apply_filters( 'exactmetrics_email_cc_enabled', $value, $this ); -
apply_filters( 'exactmetrics_email_content_type', $this->content_type, $this ); -
apply_filters( 'exactmetrics_email_default_content_type', 'text/html', $this ); -
apply_filters( 'exactmetrics_email_from_address', $this->from_address, $this ); -
apply_filters( 'exactmetrics_email_from_name', exactmetrics_decode_string( $this->from_name ), $this ); -
do_action( 'exactmetrics_email_header', $email_parts['header'] ); -
apply_filters( 'exactmetrics_email_header_logo', $default ); -
apply_filters( 'exactmetrics_email_headers', $this->headers, $this ); -
apply_filters( 'exactmetrics_email_html_template', $value, $this ); -
apply_filters( 'exactmetrics_email_reply_to', $this->reply_to, $this ); -
do_action( 'exactmetrics_email_send_after', $this ); -
do_action( 'exactmetrics_email_send_before', $this ); -
apply_filters( 'exactmetrics_email_summaries_template_args', $args ); -
apply_filters( 'exactmetrics_email_template', $this->template ); -
apply_filters( 'exactmetrics_email_template_paths', $file_paths ); -
apply_filters( 'exactmetrics_emails_send_email_data', array( 'to' => $to, 'subject' => $subject, 'message' => $message, 'headers' => $this->get_headers(), 'attachments' => $attachments, ), $this ); -
apply_filters( 'exactmetrics_emails_summaries_cron_subject', $subject ); -
apply_filters( 'exactmetrics_emails_summaries_is_enabled', $this->is_enabled ); -
apply_filters( 'exactmetrics_emails_templates_get_args', $this->args, $this ); -
apply_filters( "exactmetrics_emails_templates_get_args_{$type}", $this->args[ $type ], $this ); -
apply_filters( 'exactmetrics_emails_templates_get_content_part', $html, $template, $this ); -
apply_filters( 'exactmetrics_emails_templates_set_args', $args, $this ); -
apply_filters( 'exactmetrics_emails_templates_set_initial_args', $args, $this ); -
apply_filters( 'exactmetrics_enable_onboarding_wizard', $run_wizard ); -
apply_filters( 'exactmetrics_frontend_output_gtag_src', '//www.googletagmanager.com/gtag/js?id=' . $v4_id ); -
apply_filters( 'exactmetrics_frontend_scripts_url', plugins_url( 'assets/js/frontend/block-scripts' . $suffix . '.js', EXACTMETRICS_PLUGIN_FILE ) ); -
apply_filters( 'exactmetrics_frontend_tracking_options_before_pageview', $options, $this->name, $this->version ); -
apply_filters( 'exactmetrics_frontend_tracking_options_gtag_before_pageview', $options ); -
apply_filters( 'exactmetrics_frontend_tracking_options_gtag_before_scripts', $options ); -
apply_filters( 'exactmetrics_frontend_tracking_options_gtag_end', $options ); -
exactmetrics_frontend_tracking_options_persistent_gtag_before_pageview
filter Copy link Customise this hookapply_filters( 'exactmetrics_frontend_tracking_options_persistent_gtag_before_pageview', [] ); -
apply_filters( 'exactmetrics_get_api_url', 'api.exactmetrics.com/v2/' ); -
apply_filters( 'exactmetrics_get_mp_call_secret', $api_secret ); -
apply_filters( 'exactmetrics_get_onboarding_url', 'https://connect.exactmetrics.com' ); -
apply_filters( 'exactmetrics_get_option', $value, $key, $default ); -
apply_filters( "exactmetrics_get_option_{$key}", $value, $key, $default ); -
apply_filters( 'exactmetrics_get_option_gtagtracker_compatibility_mode', true ); -
apply_filters( 'exactmetrics_get_v4_id', $v4_id ); -
apply_filters( 'exactmetrics_get_v4_id_to_output', $v4_id, $args ); -
apply_filters( 'exactmetrics_gutenberg_tool_vars', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'exactmetrics_gutenberg_headline_nonce' ), 'allowed_post_types' => apply_filters( 'exactmetrics_headline_analyzer_post_types', array( 'post' ) ), 'current_post_type' => $posttype, 'is_headline_analyzer_enabled' => apply_filters( 'exactmetrics_headline_analyzer_enabled', true ) && 'true' !== exactmetrics_get_option( '... ); -
apply_filters( 'exactmetrics_headline_analyzer_enabled', true ); -
apply_filters( 'exactmetrics_headline_analyzer_post_types', array( 'post' ) ); -
apply_filters( 'exactmetrics_helpers_templates_include_html_args', $args, $template_name, $extract ); -
apply_filters( 'exactmetrics_helpers_templates_include_html_extract_args', $extract, $template_name, $args ); -
apply_filters( 'exactmetrics_helpers_templates_include_html_located', self::locate_template( $template_name ), $template_name, $args, $extract ); -
apply_filters( 'exactmetrics_is_debug_mode', $debug_mode ); -
apply_filters( 'exactmetrics_is_utm_stripped_server', false ); -
do_action( 'exactmetrics_load_plugins' ); -
apply_filters( 'exactmetrics_mp_v4_api_call', $body ); -
apply_filters( 'exactmetrics_notification_content_display', $notifications[ $key ]['content'] ); -
apply_filters( 'exactmetrics_onboarding_allowed_settings', array( 'site_type', 'extensions_of_files', 'affiliate_links', 'view_reports', 'automatic_updates', 'anonymous_data', 'verified_automatic', ) ); -
apply_filters( 'exactmetrics_parsed_addons', $parsed_addons ); -
do_action( 'exactmetrics_plugin_deactivated' ); -
apply_filters( 'exactmetrics_popular_posts_inline_curated_shuffle', true ); -
apply_filters( 'exactmetrics_popular_posts_posts', $posts ); -
apply_filters( 'exactmetrics_popular_posts_query_args', $args ); -
apply_filters( 'exactmetrics_popular_posts_shortcode_output', $this->shortcode_output( $args ), $args, $this ); -
apply_filters( 'exactmetrics_popular_posts_show_duplicates', true ); -
apply_filters( 'exactmetrics_popular_posts_styles_output', 'no_styles' === $this->styling, $this ); -
apply_filters( 'exactmetrics_popular_posts_widget_curated_shuffle', true ); -
apply_filters( 'exactmetrics_popular_posts_widget_title_sizes', range( 10, 35 ) ); -
apply_filters( 'exactmetrics_ppc_ad_providers_register', $core_providers ); -
apply_filters( 'exactmetrics_ppc_checkout_tracking_rcp_level', $default_level, $rcp_levels ); -
do_action( 'exactmetrics_ppc_ecommerce_providers_register', $this->ad_providers ); -
do_action( 'exactmetrics_ppc_tracking_require_files' ); -
apply_filters( "exactmetrics_ppc_tracking_track_already_tracked_{$provider_id}", $this->already_tracked_server( $order_id, $provider_id ) ); -
exactmetrics_ppc_tracking_track_already_tracked_{$provider->get_provider_id()}
filter Copy link Customise this hookapply_filters( "exactmetrics_ppc_tracking_track_already_tracked_{$provider->get_provider_id()}", $this->already_tracked_frontend( $provider->get_provider_id() ) ); -
apply_filters( 'exactmetrics_ppc_tracking_track_conversion_edd', true ); -
apply_filters( 'exactmetrics_ppc_tracking_track_conversion_give', true ); -
apply_filters( 'exactmetrics_ppc_tracking_track_conversion_lifterlms', true ); -
apply_filters( 'exactmetrics_ppc_tracking_track_conversion_memberpress', true ); -
apply_filters( 'exactmetrics_ppc_tracking_track_conversion_rcp', true ); -
apply_filters( 'exactmetrics_ppc_tracking_track_conversion_woocommerce', true ); -
apply_filters( 'exactmetrics_ppp_tracking_is_conversion_page', $this->do_conversion_checks() ); -
apply_filters( 'exactmetrics_process_smart_tags', $string ); -
apply_filters( 'exactmetrics_reauth_success_redirect_url', $url ); -
apply_filters( 'exactmetrics_report_cache_expiration', date( 'Y-m-d' ) === $end ? ( HOUR_IN_SECONDS ) : ( DAY_IN_SECONDS ), $this->name ); -
apply_filters( 'exactmetrics_report_overview_data', $data ); -
apply_filters( 'exactmetrics_report_site_summary_data', $data ); -
apply_filters( 'exactmetrics_report_traffic_sessions_chart_data', $data, $this->start_date, $this->end_date ); -
apply_filters( 'exactmetrics_report_transient_expiration', $expiration, $this->name ); -
apply_filters( 'exactmetrics_report_use_cache', false, $this->name ); -
apply_filters( 'exactmetrics_reports_abstract_get_data_pre_cache', false, $args, $this->name ); -
do_action( 'exactmetrics_reports_delete_aggregate_data' ); -
do_action( 'exactmetrics_reports_delete_network_aggregate_data' ); -
apply_filters( 'exactmetrics_reports_handle_error_message', array( 'success' => false, 'error' => $error, 'data' => array(), ) ); -
apply_filters( 'exactmetrics_sensitive_settings', $settings ); -
apply_filters( 'exactmetrics_settings_first_time_notice_hide', exactmetrics_get_option( 'exactmetrics_first_run_notice' ) ); -
apply_filters( 'exactmetrics_show_dashboard_widget', true ); -
apply_filters( 'exactmetrics_skip_tracking', false ); -
apply_filters( 'exactmetrics_temporarily_hide_php_56_upgrade_warnings', version_compare( phpversion(), $compatible_php_version['warning'], '>=' ) && version_compare( phpversion(), $compatible_php_version['recommended'], '<' ) ); -
apply_filters( 'exactmetrics_temporarily_hide_php_under_56_upgrade_warnings', version_compare( phpversion(), $compatible_php_version['warning'], '<' ) ); -
apply_filters( 'exactmetrics_track_super_admins', false ); -
apply_filters( 'exactmetrics_track_user', $track_user, $user ); -
do_action( "exactmetrics_tracking_after_{$mode}" ); -
do_action( 'exactmetrics_tracking_after_gtag' ); -
apply_filters( 'exactmetrics_tracking_analytics_script_attributes', $default_attributes ); -
do_action( "exactmetrics_tracking_before_{$mode}" ); -
do_action( 'exactmetrics_tracking_before_analytics' ); -
apply_filters( 'exactmetrics_tracking_event_extra_data', $this->extra_data, $this->name ); -
apply_filters( 'exactmetrics_tracking_event_payload', $this->payload, $this->name ); -
do_action( 'exactmetrics_tracking_gtag_frontend_before_script_tag' ); -
apply_filters( 'exactmetrics_tracking_gtag_frontend_gatracker_compatibility', true ); -
do_action( 'exactmetrics_tracking_gtag_frontend_output_after_em_track_user' ); -
apply_filters( 'exactmetrics_update_option', $value, $key ); -
apply_filters( 'exactmetrics_vue_post_types_editor', $post_types_parsed ); -
apply_filters( 'exactmetrics_vue3_entry_map', array( 'exactmetrics_overview_report' => 'src/modules/reports/main.js', 'exactmetrics_custom_dashboard' => 'src/modules/custom-dashboard/main.js', 'exactmetrics-custom-dashboards' => 'src/modules/custom-dashboard/main.js', 'exactmetrics_settings' => 'src/modules/settings/main.js', 'exactmetrics_network' => 'src/modules/settings/main-network.js', ) ); -
apply_filters( 'exactmetrics_yearinreview_show_report', $show_report ); -
apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
Generated from ExactMetrics's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: