We'll create fresh WordPress site with Include Matomo Tracking, by Jonas Hellmann installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This plugin lets you integrate your existing Matomo On-Premise into WordPress. If you don’t already have a working Matomo (either On-Premise or Matomo Cloud), use the Matomo Analytics plugin instead.
Matomo, formerly called Piwik, is an self-hosted open-source tool to analyze your pages. It needs a tracking code to be included in the pages that should be monitored. Also campaigns can be created by using specific parameters in the URL.
Therefore in this plugin, you can configure the URL where Matomo is hosted and the site ID for tracking your WordPress page. You can find it in the tracking code. You only need to fill in these both information. The rest of the tracking code is standartized and automatically inserted in the page. Also, you can set a campaign name (pk_campaign) and source (pk_source) which will be adds to the links in your RSS feed. This helps you to analyze how many users enter your pages by using your RSS feed.
If you like to, there is an additional field to deactivate the usage of cookies by Matomo.