Can I use Motemo instead of google analytics?

Hy
Can I use https://matomo.org/matomo-on-premise/ instead of google analytics?
I wane use this because of it is better for the privaty for my users.
I go th have it install on my one domain.
can I put the code toe connect it in the google analytics field?
If no Houw can I use it?

Juliette R

@reekje Matomo supports some of the google analytic parameters, but please see this new topic Potential improvement to google tracking . One of the intended improvements is to support Matomo as an alternative to google analytics. Please add any suggested improvements, such as what the default values should be.