alexlehm I started a new plugin to include a Piwik Tag Manager in the Wiki pages after I decided to use that instead of Google Tag Manager a while ago and including the Piwik tag from the old Google Tag Manager was just lame. The Plugin is available at https://www.dokuwiki.org/plugin:piwiktagmanager
andi Kudos for actually adding a functional unit test! I left a couple of suggestions on improving the coding style. You might want to check out the dev plugin for autofixing and setting up github actions to run your test automatically.