Note: Some plugins are not yet compatible with PHP 8 or WP 5.7 and are therefore deactivated
The amazing Matomo Analytics can be paired with the WP-Matomo WordPress plugin for easy setup. WP-Matomo allows for complete configuration of the tracking code, including disabling cookies, DNS preloading, post annotation and also offers stats directly in the dashboard.
Extract from WordPress.org
This plugin uses the Matomo API to show your Matomo statistics in your WordPress dashboard. It’s also able to add the Matomo tracking code to your blog and to do some modifications to the tracking code. Additionally, WP-Matomo supports WordPress networks and manages multiple sites and their tracking codes.https://wordpress.org/plugins/wp-piwik/