{"id":65063,"date":"2020-12-15T09:00:00","date_gmt":"2020-12-15T14:00:00","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=65063"},"modified":"2021-08-16T15:28:25","modified_gmt":"2021-08-16T19:28:25","slug":"matomo-analytics","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/","title":{"rendered":"How to Install the Matomo Analytics WordPress Plugin"},"content":{"rendered":"<p><a href=\"https:\/\/matomo.org\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\"><strong>Matomo Analytics<\/strong><\/a>, formerly <em>Piwik Analytics<\/em>, is one of the most popular <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/choose-the-best-analytics-tool\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">Google Analytics alternatives<\/a> available today. The open source web analytics suite has a long list of features and over 50 <a href=\"https:\/\/plugins.matomo.org\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">plugins available<\/a> to customize user interaction and tracking and for your <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/introduction-to-hubspot-all-in-one-marketing-for-wordpress\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">marketing<\/a> and <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wp-privacy-setting\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">privacy<\/a> needs.<\/p>\n\n\n\n<p class=\"alert alert-warning\">The recommended <em>shell_exec<\/em> PHP function cannot be enabled on shared hosting. However, Matomo runs fine without it for most use cases.<\/p>\n\n\n\n<p>Before, you\u2019d need to <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/install-matomo-analytics\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">install a stand-alone Matomo Analytics<\/a> application on the web server with a dedicated database user and password for storing data. Then you\u2019d have to embed the Matomo tracking code into your website header or footer to start logging interactions. Or you could add the tracking code and import some statistics in a content management system (CMS) dashboard such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/introduction-to-wordpress\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">WordPress<\/a><\/li><li><a href=\"https:\/\/www.drupal.org\/project\/matomo\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">Drupal<\/a><\/li><li><a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/grav-matomo-analytics\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">GRAV<\/a><\/li><li><a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/install-zenphoto-plugin\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">Zenphoto<\/a><\/li><li><a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/matomo-analytics-thirty-bees\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">thirty bees<\/a><\/li><\/ul>\n\n\n\n<p>Then, in 2019, the Matomo developers created an official plugin to manage analytics features from within the WordPress dashboard. <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/wordpress.org\/plugins\/matomo\/\" target=\"_blank\" rel=\"noreferrer noopener\">Matomo Analytics \u2013 Ethical Stats. Powerful Insights<\/a> grants you access to <strong>on-site web analytics<\/strong> functions without having to install a separate web application on the server. There are a few notable advantages to this:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Analytics accessible<\/strong> with only 1 button click<\/li><li><strong>Less user credentials<\/strong> to maintain with <a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/www.inmotionhosting.com\/support\/security\/keepass-for-windows-user-guide\/\" target=\"_blank\">password management<\/a><\/li><li>Matomo <strong>privileges automatically mapped<\/strong> to WordPress administrator roles<\/li><li><strong>Easier maintenance<\/strong> as updates and other notifications are in one location<\/li><li><strong>Simpler migration<\/strong> process as all Matomo data is in the installed WordPress directory and database<\/li><\/ul>\n\n\n\n<p>Below we\u2019ll cover how to:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#install\">Install the Official Matomo Analytics WordPress Plugin<\/a><ul><li><a href=\"#dash\">Install from the Dashboard<\/a><\/li><li><a href=\"#wp\">Install via WP-CLI<\/a><\/li><li><a href=\"#man\">Install Manually<\/a><\/li><\/ul><\/li><li><a href=\"#start\">Get Started with Matomo Analytics in WordPress<\/a><ul><li><a href=\"#access\">Matomo Admin Access<\/a><\/li><li><a href=\"#exclusion\">Tracking Exclusions<\/a><\/li><li><a href=\"#geo\">Geolocation for Matomo Analytics<\/a><\/li><li><a href=\"#adv\">Advanced Settings<\/a><\/li><li><a href=\"#matomo\">Matomo Dashboard<\/a><\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"alert alert-danger\">Per the Matomo developers, if you\u2019re already using a standalone Matomo installation or Matomo Cloud, it\u2019s best to use the <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/connect-wordpress-matomo-with-wp-matomo\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">WP-Matomo plugin<\/a> which integrates your website with your existing Matomo data. Attempting to combine the two data sources could result in data corruption.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install\">Install the Official Matomo Analytics WordPress Plugin<\/h2>\n\n\n\n<p>You can install the Matomo WordPress plugin with the <a href=\"#dash\">dashboard<\/a>, <a href=\"#wp\">WP-CLI<\/a>, or <a href=\"#manual\">manual installation<\/a>.<\/p>\n\n\n\n<p class=\"alert alert-info\">This plugin downloads the <em>DBIP-City.mmdb<\/em> geolocation database from <a href=\"https:\/\/db-ip.com\/db\/download\/ip-to-city-lite\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">DB IP<\/a> into your uploads directory to detect user location based on their IP address.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"dash\">Install from the Dashboard<\/h3>\n\n\n\n<ol class=\"article_list wp-block-list\"><li><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/logging-into-wordpress-dashboard\/\" target=\"_blank\" rel=\"noreferrer noopener\">Log into your WordPress dashboard<\/a>.<\/li><li><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/install-wordpress-plugins\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install the <strong>Matomo Analytics \u2013 Ethical Stats. Powerful Insights<\/strong><\/a> plugin and activate it.<\/li><li>In the plugins list, under <em>Matomo Analytics<\/em>, select <a href=\"#start\">Get Started<\/a>.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp\">Install via WP-CLI<\/h3>\n\n\n\n<p>System administrators with <strong>WP-CLI<\/strong> installed can manage WordPress plugins with dedicated <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wp-cli\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">SSH commands<\/a>.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li><a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/do-you-provide-ssh-access\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">Connect to your server using SSH<\/a>.<\/li><li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wp-cli\/install-a-plugin-using-wp-cli\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">Install and activate Matomo Analytics<\/a> using the following command:<pre>wp plugin install matomo --activate <\/pre><\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"man\">Install Manually<\/h3>\n\n\n\n<p>WordPress developers without WP-CLI or using <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/ftp\/getting-started-guide\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">File Transfer Protocol (FTP)<\/a> can manually upload the WordPress plugin before activating it in the dashboard.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>To install the plugin manually, download the plugin zip file from <a href=\"https:\/\/wordpress.org\/plugins\/matomo\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">WordPress.org<\/a>.<\/li><li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-upload-a-file-using-file-manager-in-cpanel\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">Upload the zip file<\/a> and <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/compressing-uncompressing-files\/#uncompress\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">extract the folder<\/a> in the WordPress <code>wp-content\/plugins<\/code> folder.<\/li><li><a href=\"#start\">Log into your WordPress site<\/a> or use the WP-CLI SSH command to activate the plugin:<pre>wp plugin activate matomo<\/pre><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"start\">Get Started with Matomo Analytics in WordPress<\/h2>\n\n\n\n<p>This section will cover the basics of enabling and configuring the Matomo tracking code for WordPress.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/attachment\/wordpress-matomo-get-started\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started-1024x280.png\" alt=\"Getting started with Matomo Aanly\" class=\"wp-image-65069\" width=\"512\" height=\"140\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started-1024x280.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started-300x82.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started-768x210.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started-1536x420.png 1536w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started.png 1681w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/a><\/figure><\/div>\n\n\n\n<ol class=\"article_list wp-block-list\"><li><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/logging-into-wordpress-dashboard\/\" target=\"_blank\" rel=\"noreferrer noopener\">Log into your WordPress dashboard<\/a>.<\/li><li>On the left, hover over <em>Matomo analytics<\/em> and select <strong>Get Started<\/strong>.<\/li><li>Select <strong>Enable tracking now<\/strong>.<\/li><li>Purge any server caching (<a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/php-fpm\/how-to-restart-php-fpm\/\" target=\"_blank\" rel=\"noreferrer noopener\">PHP-FPM<\/a> or <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/nginx-cache-management\/\" target=\"_blank\" rel=\"noreferrer noopener\">NGINX<\/a>) or plugin caching (e.g. <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/w3-total-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">W3 Total Cache<\/a> and <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/wp-super-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP Super Cache<\/a>).<\/li><li>Select <strong>Click here to configure your tracking code<\/strong> in the <em>Settings<\/em> section.<\/li><li>On the <em>Tracking<\/em> page, you can configure or disable the tracking code for your WordPress website. Notable options worth reviewing:<br><strong>Disable cookies<\/strong> for tracking visitors<br><strong>Enable ecommerce<\/strong> for WordPress stores (e.g. <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce<\/a>)<br><strong>Track search<\/strong> to learn more about what users are looking for within your website<br><strong>Track 404<\/strong> helps improve user experience (UX) and <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/seo\/seo-getting-started-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\">search engine optimization (SEO)<\/a><br><strong>Enable content tracking<\/strong> for user engagement with <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-affiliate-links-in-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">advertisements<\/a>, <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/video-sitemap-plugins-for-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">videos<\/a>, and more<br><strong>Track RSS feeds<\/strong> if you encourage readers to use <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-an-rss-feed-to-your-wordpress-site\/\" target=\"_blank\" rel=\"noreferrer noopener\">Really Simple Syndication (RSS)<\/a> readers<br><strong>User ID Tracking<\/strong> for auditing registered users\u2019 actions<br><strong>Force Matomo to use a specific protocol<\/strong> to ensure your Matomo suite uses an <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-ssl\/\" target=\"_blank\" rel=\"noreferrer noopener\">SSL connection<\/a><\/li><li>At the bottom, <strong>Save Changes<\/strong>.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"access\">Matomo Admin Access<\/h3>\n\n\n\n<p>At the top, select the <em>Access<\/em> tab to control which WordPress roles (editor, author, etc.) have assigned Matomo roles by default. The options are <em>View, Write, and Admin<\/em>. The <em>Super User<\/em> role is automatically assigned to the WordPress administrator. Once you\u2019re done, don\u2019t forget to <strong>Save changes<\/strong>.<\/p>\n\n\n\n<p>Developers can also use <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-user-role-editor\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">WordPress role editor plugins<\/a> for further flexibility with custom Matomo capabilities:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>superuser_matomo<\/li><li>admin_matomo<\/li><li>write_matomo<\/li><li>view_matomo<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"exclusion\">Tracking Exclusions<\/h3>\n\n\n\n<p>The <em>Exclusions<\/em> tab helps you clean up analytics by excluding the following from tracking:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>WordPress user roles<\/li><li>IP addresses for <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-nginx-reverse-proxy-caching\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">proxy servers<\/a> or specific networks<\/li><li>Query URL parameters such as affiliate campaign links<\/li><li>User agents, useful for ignoring some <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/seo\/search-engine-crawlers-automated-robots-not-being-controlled\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">crawl bots<\/a><\/li><li>Fragments (<a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/gutenberg\/add-anchor-links-with-gutenberg-wordpress\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">HTML anchors<\/a>)<\/li><\/ul>\n\n\n\n<p>After any updates, <strong>Save changes<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"geo\">Geolocation for Matomo Analytics<\/h3>\n\n\n\n<p>As mentioned earlier, Matomo uses <a href=\"https:\/\/db-ip.com\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">DB-IP<\/a> for IP geolocation in analytics. Users wanting more accurate location results in WordPress can <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/woocommerce\/how-to-set-up-maxmind-geolocation-in-woocommerce\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">create a MaxMind account<\/a>. Then, add the <strong>MaxMind license key<\/strong> to your <em>Geolocation<\/em> settings. <strong>Save changes<\/strong>.<\/p>\n\n\n\n<p class=\"alert alert-warning\">If you want to be <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-use-jetpack-for-gdpr-compliance\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">General Data Protection Regulation (GDPR)<\/a> or <a href=\"https:\/\/www.inmotionhosting.com\/blog\/privacy-policy-updated\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">California Consumer Privacy Act (CCPA)<\/a> compliant, read the <strong>Privacy &amp; GDPR<\/strong> info first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"adv\">Advanced Settings<\/h3>\n\n\n\n<p>The <em>Advanced<\/em> tab is where you ensure Matomo knows which IP address is indeed yours. This is important when your website is behind a proxy server. If the detected IP is wrong, select the radio button for the correct option.<\/p>\n\n\n\n<p>You may also deselect the <em>Yes<\/em> checkbox to prevent Matomo from deleting website analytics if the plugin is uninstalled. <strong>Save changes<\/strong> if necessary.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"matomo\">Matomo Dashboard<\/h3>\n\n\n\n<p>Once you\u2019ve completed your Matomo setup, select <strong>Matomo Analytics &gt; Reporting<\/strong> from the sidebar to access the Matomo dashboard.<\/p>\n\n\n\n<p class=\"alert alert-warning\">You may need to whitelist the website if you\u2019re using a web browser extension for ad blocking including uBlock Origin, Adblock, and NoScript.<\/p>\n\n\n\n<p>The dashboard is very similar to the standalone Matomo web application dashboard. Click the gear icon in the upper-right corner to access Matomo dashboard settings including segmentation and <a href=\"https:\/\/www.inmotionhosting.com\/support\/email\/create-matomo-email-reports\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">automated email reports<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-dashboard-1024x576.png\" alt=\"Matomo Analytics Reporting\" class=\"wp-image-65070\" title=\"WordPress Matomo Analytics dashboard\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-dashboard-1024x576.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-dashboard-300x169.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-dashboard-768x432.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-dashboard-1536x864.png 1536w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-dashboard.png 1920w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>After you\u2019ve gotten familiar with the Matomo dashboard, you should check out the other Matomo Analytics options in the WordPress sidebar:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Summary<\/strong> for a snapshot of recent analytics<\/li><li><strong>Marketplace<\/strong> for installing Matomo plugins<\/li><li><strong>Diagnostics<\/strong> for possible website, database, or server issues<\/li><\/ul>\n\n\n\n<p>Learn more ways to enhance your website through our <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\">WordPress Education Channel<\/a>.<\/p>\n\n\n<div class=\"jumbotron\">\r\n<p>Improve the performance and security of your WordPress website with our <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\/wordpress?mktgp=t&irgwc=1&affiliates=5001860&utm_campaign=Jumbotron&utm_source=supportcenter&utm_medium=cta&utm_term=wp-hosting-performance\">WordPress VPS Hosting<\/a> plans. Featuring blazing fast servers with advanced caching, 99.99% uptime, and a robust toolkit developed by WordPress experts.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/legacy\/images\/check.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Improve Core Web Vitals    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/legacy\/images\/check.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Free SSL &amp; Dedicated IP    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/legacy\/images\/check.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Advanced Server Caching    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/legacy\/images\/check.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>US &amp; EU Data Centers<\/p>\r\n<p><a class=\"btn btn-primary btn-lg\" href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\/wordpress?mktgp=t&irgwc=1&affiliates=5001860&utm_campaign=Jumbotron&utm_source=supportcenter&utm_medium=cta&utm_term=wp-hosting-performance\">VPS for WordPress<\/a><\/p>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Matomo Analytics, formerly Piwik Analytics, is one of the most popular Google Analytics alternatives available today. The open source web analytics suite has a long list of features and over 50 plugins available to customize user interaction and tracking and for your marketing and privacy needs. The recommended shell_exec PHP function cannot be enabled on<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4379],"tags":[],"class_list":["post-65063","post","type-post","status-publish","format-standard","hentry","category-plugins"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install the Matomo Analytics Plugin for WordPress<\/title>\n<meta name=\"description\" content=\"Learn how to get in-depth website analytics in your dashboard with the official Matomo WordPress plugin and better understand your users&#039; experience (UX).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install the Matomo Analytics Plugin for WordPress\" \/>\n<meta property=\"og:description\" content=\"Learn how to get in-depth website analytics in your dashboard with the official Matomo WordPress plugin and better understand your users&#039; experience (UX).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-15T14:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-16T19:28:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/canva-how-to-install-the-matomo-analytics-wordpress-plugin.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"How to Install the Matomo Analytics WordPress Plugin\",\"datePublished\":\"2020-12-15T14:00:00+00:00\",\"dateModified\":\"2021-08-16T19:28:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/\"},\"wordCount\":1078,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started-1024x280.png\",\"articleSection\":[\"WordPress Plugins\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/\",\"name\":\"How to Install the Matomo Analytics Plugin for WordPress\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started-1024x280.png\",\"datePublished\":\"2020-12-15T14:00:00+00:00\",\"dateModified\":\"2021-08-16T19:28:25+00:00\",\"description\":\"Learn how to get in-depth website analytics in your dashboard with the official Matomo WordPress plugin and better understand your users' experience (UX).\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started.png\",\"width\":1681,\"height\":460},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install the Matomo Analytics WordPress Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install the Matomo Analytics Plugin for WordPress","description":"Learn how to get in-depth website analytics in your dashboard with the official Matomo WordPress plugin and better understand your users' experience (UX).","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/","og_locale":"en_US","og_type":"article","og_title":"How to Install the Matomo Analytics Plugin for WordPress","og_description":"Learn how to get in-depth website analytics in your dashboard with the official Matomo WordPress plugin and better understand your users' experience (UX).","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2020-12-15T14:00:00+00:00","article_modified_time":"2021-08-16T19:28:25+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/canva-how-to-install-the-matomo-analytics-wordpress-plugin.png","type":"image\/png"}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"How to Install the Matomo Analytics WordPress Plugin","datePublished":"2020-12-15T14:00:00+00:00","dateModified":"2021-08-16T19:28:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/"},"wordCount":1078,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started-1024x280.png","articleSection":["WordPress Plugins"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/","name":"How to Install the Matomo Analytics Plugin for WordPress","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started-1024x280.png","datePublished":"2020-12-15T14:00:00+00:00","dateModified":"2021-08-16T19:28:25+00:00","description":"Learn how to get in-depth website analytics in your dashboard with the official Matomo WordPress plugin and better understand your users' experience (UX).","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/12\/wordpress-matomo-get-started.png","width":1681,"height":460},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/matomo-analytics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Install the Matomo Analytics WordPress Plugin"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4379,"name":"WordPress Plugins","slug":"plugins","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/65063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=65063"}],"version-history":[{"count":9,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/65063\/revisions"}],"predecessor-version":[{"id":82711,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/65063\/revisions\/82711"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=65063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=65063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=65063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}