Matomo Site Kit
Complete Matomo Analytics for WordPress: Tag Manager, server-side tracking, WooCommerce, site search, AI chatbot tracking and GDPR options.
Install in
Matomo Site Kit is the ultimate WordPress plugin for integrating Matomo Analytics – the leading open-source, privacy-focused alternative to Google Analytics.
Whether you use Matomo Cloud or self-hosted Matomo On-Premise, this plugin provides everything you need for comprehensive website analytics while respecting your visitors’ privacy.
Screenshots, setup steps and answers to common questions are on the Matomo Site Kit for WordPress page.
Why Choose Matomo Site Kit?
- Privacy-First Analytics – Full GDPR, CCPA, and PECR compliance out of the box
- No Data Sampling – 100% accurate data, unlike Google Analytics
- You Own Your Data – No third-party data sharing
- Ad-Blocker Resistant – Server-side tracking bypasses most ad blockers
- WooCommerce Ready – Complete ecommerce tracking for your online store
- AI Chatbot Tracking – See which pages ChatGPT, Claude, Perplexity or Gemini read to answer their users, on by default
Three Powerful Tracking Methods
Choose the tracking method that best fits your needs:
-
Classic JavaScript Tracking – Traditional Matomo tracking with full feature support using
_paq.push(). Best for most websites. -
Matomo Tag Manager (MTM) – Advanced tag management with dataLayer integration. Perfect for marketing teams who need flexible trigger and variable management.
-
Server-Side PHP Tracking – Privacy-friendly tracking that works even when JavaScript is disabled or blocked. Ideal for GDPR-focused websites and bypassing ad blockers.
Complete Feature List
Analytics Dashboard
- Real-time analytics overview in WordPress admin
- Visits, page views, bounce rate, and session duration
- WordPress Dashboard widget for quick stats
- Per-post and per-page analytics metabox
WooCommerce Ecommerce Tracking
- Product view tracking with SKU, name, price, and categories
- Category page view tracking
- Add to cart and remove from cart events
- Cart update tracking
- Complete order tracking with revenue, tax, and shipping
- Works with all three tracking methods
Site Search Tracking
- Automatic WordPress search tracking
- Search keyword capture
- Category filter detection
- Search result count
- Zero configuration required
AI Chatbot Tracking (Matomo 5.7+)
- On by default, can be switched off in Settings
- Works with Classic, Tag Manager and server-side tracking: chatbots do not run JavaScript, so WordPress sends the request itself
- Feeds the AI Assistants > AI Chatbots reports of Matomo, with HTTP status and server time
- Pages served by a page cache: drop-in for advanced-cache.php caches (WP Super Cache, W3 Total Cache, WP Rocket) and ESI for LiteSpeed Cache
- No visit created, no cookie, no Auth Token needed
Automatic Annotations
- Create Matomo annotations when content is published
- Select which post types trigger annotations
- Customizable format with variables: {post_type}, {title}, {url}, {author}
- Live preview in settings
Privacy & GDPR Compliance
- Consent mode options (requireConsent, requireCookieConsent)
- Privacy opt-out shortcode [matomo_opt_out]
- Server-side tracking for cookieless analytics
- Exclude tracking by user role
- WP Consent API support: Matomo follows the choice made in any compatible consent banner, with Classic, Tag Manager and server-side tracking
Advanced Features
- User ID tracking with SHA256 hashed email
- Heartbeat Timer for accurate time-on-page measurement
- DataLayer integration for Tag Manager (Matomo config + page context: page_type, post_type label, taxonomies, locale, login status, post_id)
- Bot detection and filtering
- Noscript fallback for JavaScript-disabled browsers
- DNS prefetch and script preloading for performance
- Matomo Cloud and On-Premise support
Perfect For
- Bloggers who want simple, privacy-respecting analytics
- WooCommerce stores needing detailed ecommerce insights
- Agencies managing multiple client websites
- Enterprise organizations with strict data privacy requirements
- GDPR-conscious website owners in the EU
- Marketing teams using Matomo Tag Manager
Matomo Cloud vs On-Premise
This plugin works seamlessly with both:
- Matomo Cloud – Hosted solution at matomo.cloud, no server management needed
- Matomo On-Premise – Self-hosted on your own server for complete data ownership
Written by Joobi from the project's own listing. See the source page
2.5.3
Release date: 2026-12-03
Fixed:
- Matomo Cloud accounts on innocraft.cloud load the tracking code and the container from the Matomo CDN, and the old cdn.innocraft.cloud address is accepted as the Matomo host
2.5.2
Release date: 2026-12-03
Fixed:
- Matomo Cloud: the tracking code and the container now load when the CDN address of the embed code (cdn.matomo.cloud) or an http:// address was entered as the Matomo host. Existing settings are corrected automatically
2.5.1
Release date: 2026-12-03
Fixed:
- AI chatbot detection uses the same list as Matomo. Google-GeminiNotebook, the new name of NotebookLM, is now detected: with server-side tracking, it was recorded as a human visit
- AI agents that Matomo ignores (GPTBot, GoogleAgent, Devin, NovaAct, Google-Extended and Google-CloudVertexBot) are no longer sent, and still do not count as visits
2.5.0
Release date: 2026-12-03
Added:
- WP Consent API support. With Classic tracking and Consent Mode enabled, Matomo follows the “statistics” category of any compatible consent banner, including when the visitor changes their mind
- Consent Mode for server-side tracking: with “Require Consent” and WP Consent API active, page views, searches and WooCommerce events are only sent for visitors who accepted
- Tag Manager:
cmp_readyandcmp_updateevents with the state of every consent category (wp_consent.statistics…) when WP Consent API is active - Matomo cookies are described to WP Consent API, and Site Health reports Site Kit as compatible once it follows consent
omsk_consent_api_categoryfilter to attach Matomo to another consent category
Fixed:
- Links now point to the renamed GitHub repository (openmost/wp-matomo-site-kit) and to the plugin page on openmost.com
- Bullet lists on the WordPress.org page
- The noscript pixel was printed with “Require Consent”, so visitors without JavaScript were tracked before any consent
2.4.1
Release date: 2026-11-18
Changed:
- Plugin URI and Author URI now point to openmost.com, the plugin page is openmost.com/matomo/extensions/matomo-site-kit-for-wordpress
2.4.0
Release date: 2026-11-18
Changed:
- AI chatbot tracking now works with every tracking method (Classic, Tag Manager, server-side). Chatbots do not run JavaScript, so WordPress sends the bot request itself when it renders the page, with the HTTP status and the server time
- AI chatbot tracking is on by default, including on existing sites, and can be switched off with a checkbox in Settings
- Cached pages: pages served by advanced-cache.php (WP Super Cache simple mode, W3 Total Cache Disk: Basic, WP Rocket PHP fallback) are tracked with a drop-in loaded from wp-config.php, Settings shows the lines to paste and whether the drop-in is loaded
- Cached pages: LiteSpeed Cache is tracked through an ESI include, enabled with a checkbox in Settings. The option is only available on LiteSpeed servers, Apache and nginx would print the include as is, so a saved ESI setting is ignored there and chatbots are tracked directly. Define
OMSK_AI_BOT_ESIin wp-config.php to force it behind an ESI-capable CDN - Detection list aligned with the official Matomo PHP tracker, filterable with
omsk_ai_bot_user_agents - Classic tracking flags AI agents that run JavaScript with a
matomo_has_jscookie so they are not counted twice - Bot requests no longer send the Auth Token
Fixed:
- With server-side tracking, AI chatbots such as ChatGPT-User or Claude-User were also recorded as human visits, including WooCommerce product views and site searches
2.3.3
Release date: 2026-06-03
Fixed:
- Removed the
crossoriginattribute from the Tag Manager and classic trackingpreload/preconnecthints. The container/matomo.jsscript is injected as a classic (credentialed, no-CORS) script, so the CORScrossoriginpreload no longer matched its credentials mode – the browser ignored the preload (“request credentials mode does not match”) and refetched the script. The hints now match the actual request and are reused - Simplified the cross-origin / same-origin resource-hint branches now that the
preloadis identical in both cases
2.3.1
Release date: 2026-05-10
Fixed:
- Tag Manager dataLayer (
_mtm) is now preserved for users whose role is in the tracking exclusion list. The_mtmarray is still initialized and the config / page-context pushes are still emitted, so site code that relies on_mtm.push(...)keeps working and the dataLayer stays inspectable from devtools. Only the actual tracker payloads (MTM container script, classicmatomo.js, server-side PHP tracker, noscript pixel) are suppressed for excluded roles
Security:
- Resolved all open Dependabot advisories (1 critical, 29 high, 13 moderate, 11 low) by upgrading
@wordpress/scriptsfrom^27.0.0to^32.1.0and pinning patched transitive versions viaoverrides:@babel/runtime ^7.29.2,serialize-javascript ^7.0.5,webpack-dev-server ^5.2.3,markdownlint-cli ^0.48.0 - Patches affect
axios,lodash,node-forge,fast-uri,basic-ftp,cross-spawn,tar-fs,ws,path-to-regexp,picomatch,brace-expansion,follow-redirects,@babel/runtime,serialize-javascript, and others. All affected packages are build-time / dev dependencies except@babel/runtime, which is bundled into the admin UI - Admin UI bundle rebuilt against the upgraded toolchain
2.3.0
Release date: 2026-04-16
New Features:
- Page context dataLayer – New optional toggle “Push page context to dataLayer” that enriches
_mtmwith ready-to-use variables for Tag Manager triggers and variables - Pushed variables include:
page_type(home, blog, search, error_404, author,<post_type>,archive_<post_type>,archive_<taxonomy>,archive_date,archive),post_type(singular human-readable label),post_idon singular pages, taxonomies (category,tag, any custom taxonomy slug with term names),authoron author archives,locale, anduser_login_status user_id(SHA256) anduser_roleare now pushed in the page context when User ID tracking is enabled (previously in the Matomo config object)
Improvements:
- Renamed the Tag Manager “Push context to dataLayer” toggle to “Push config context to dataLayer” to clearly distinguish it from the new page context toggle
- Enabling the config context toggle now pre-checks the page context toggle
- Config context push now only carries
matomo.*andwordpress.environment– keeps the initial payload minimal matomo.site_idis now pushed as an integer (was a string)- Removed
recModefrom the dataLayer push (kept on the actual tracker requests where it is needed) - Matomo Host is now trimmed and stripped of any trailing slash on save and in the dataLayer payload
- Custom taxonomies registered with
publicly_queryableorshow_ui(but notpublic) are now included
Technical:
- New helpers:
omsk_get_page_context(),omsk_get_post_type_label(),omsk_get_current_user_role() - REST settings add
enableMtmPageContextflag (omsk-matomo-enable-mtm-page-context-fieldoption)
2.2.0
Release date: 2026-03-06
New Features:
- AI Bot Tracking – Track visits from AI assistants (ChatGPT, Perplexity, Claude, Gemini, etc.) separately in Matomo using the bot tracking API (recMode). Requires Matomo 5.7.0+
- Server-Side PHP Tracking – Track page views server-side for ad-blocker resistance and enhanced privacy
- WooCommerce Ecommerce Tracking – Complete ecommerce analytics for all three tracking methods
- Site Search Tracking – Automatically track WordPress searches with keyword, category, and result count
- Automatic Annotations – Create Matomo annotations when posts are published
- Customizable annotation format with variables ({post_type}, {title}, {url}, {author})
- Privacy settings page with robots.txt and .well-known/ai-plugin.json management
Improvements:
- Restructured Settings page with intuitive tracking method cards
- Each tracking method now clearly shows its required fields
- Separated feature cards for better organization (GDPR, Heartbeat, User ID, Ecommerce, Search, AI Bot Tracking)
- Renamed Dashboard tab to Features tab for clarity
- Intelligent bot detection for server-side tracking with AI assistant categorization
- Server-side AI bot detection sends recMode=1 (bot-only) requests with source label
- Classic JS and Tag Manager use recMode=2 (auto mode) for automatic AI bot classification
- Noscript image tracker includes recMode=2 for pixel-based bot detection
- Privacy opt-out shortcode now uses modern script-based approach
- Full WordPress Coding Standards compliance
- Enhanced security with proper escaping and sanitization throughout
- Added REST API nonce for improved security
- Performance optimizations with DNS prefetch and script preloading
Technical:
- Complete code audit for security and best practices
- Improved internationalization (i18n) support
- PHP 8.2+ compatibility
- WordPress 6.0+ required
- Matomo 5.7.0+ required for AI Bot Tracking feature
2.1.1
Release date: 2025-11-24
- Tested on WordPress 6.9
2.1.0
Release date: 2025-11-24
- Refactored Settings page with tabbed interface
- Added Dashboard tab for API configuration
- Added User ID tracking feature (SHA256 hashed email)
- Added Heartbeat Timer option for classic tracking
- Improved Tag Manager dataLayer with wordpress.user_id
- Removed setup wizard in favor of streamlined settings
- Various UI/UX improvements
- Added noscript image tracker fallback
2.0.0
Release date: 2025-11-20
- Complete refactor using React and WordPress components
- New modern dashboard interface
- WordPress Dashboard widget
- Post/Page analytics metabox
1.1.2
Release date: 2024-09-25
- Fix missing function get_value()
1.1.0
Release date: 2023-06-29
- Add dataLayer sync
- Add Matomo details in dataLayer
- Fix Matomo Cloud instances support
1.0.2
Release date: 2023-06-27
- Support Matomo Cloud CDN in tracking codes
1.0.0
Release date: 2023-05-17
- Initial plugin release
Follow this listing's changes (Atom feed)