piwik/matomo dsgvo

I disabled Google Analytics on my website as dsgvo made it even more difficult for me to use a service like Google Analytics as it stores data from my website users. Its possible to anonymize the ips but after all its still an external service which analyses data of internet users. Now I heard from a friend of mine that the piwik/matomo analysis tool is open source software which is installed directly on the server without transferring the data outside the EU or using the data in some other way.

Now I want to install the piwik/matamo analysis tool on my server. I use a Drupal 7 website. Has anybody tips for me on how to install the tool and integrate it into my website so that all is dsgvo conform?

No answers yet