Get Stats settings is a WordPress ability from Jetpack — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get Stats settings

Read-only
Jetpack Backup & Site Management jetpack-stats/get-settings

Read who can see the Stats admin bar/menu, whose visits are counted, and the Do Not Track setting.

Requires the Jetpack plugin on WordPress 6.9+. Abilities are registered by several bundled Jetpack packages (automattic/jetpack-backup, jetpack-connection, jetpack-forms, jetpack-stats) plus the main plugin's own registrars for Related Posts, Shortlinks, Sitemaps, Newsletter/Subscriptions, and Monitor. Permission requirements vary by ability — most gate on 'manage_options', 'jetpack_admin_page', or 'view_stats', while Forms abilities use 'edit_pages'. Backup abilities only register when a Backup product/plan is active; Sitemaps, Monitor, and Newsletter abilities only register when their respective module is turned on.

What it does

This ability returns Jetpack Stats' current configuration: whether the Stats item appears in the admin bar, which role slugs are allowed to view Stats, which role slugs' visits are counted toward stats, and whether the plugin honors the browser's Do Not Track header. It reads only a whitelisted subset of the underlying stats_options data — internal keys like blog_id, notices, or version are deliberately excluded.

See it in action

You ask your AI assistant

"Who can currently view Jetpack Stats on my site, and is Do Not Track honored?"

Returns

An object with admin_bar (boolean), roles (array of role slugs allowed to view Stats), count_roles (array of role slugs whose visits are counted), and do_not_track (boolean).

Permission

The current user must have the 'view_stats' capability.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.