Matomo can be modified to a cookieless tracking. The disadvantage is, that no reports for recurring visitors are possible.
For germany (EU) it is not really clear to use a consent with cookieless tracking, respectivelly wheter this is EU-conform. About that, a explicit visible hint with the info that tracking is in use is required. This can be a pop-up or similar without consent. The current meaning is: Cookieless tracking don’t requires a consent, but a hint.