As for Piwik 2.0, I published a new plugin to embed Matomo into DokuWiki today. Matomo ist the follow-up of Piwik and. The switch took place between Piwik 3.2.1 and Matomo 3.3.0 in January 2018.
It has exactly the same purpose and functionality but is adapted for Matomo.
You can find it on https://www.dokuwiki.org/plugin:matomo and the repository can be found here:
The old plugin could still be found here: