How add Matomo/Google Analytics?

Is there a way to create a plugin to incorporate a third party library like Matomo or Google Analytics to the project without change the source code?

Yes, in the case of Google Analytics, just you would need to replace

At this point it would be a nice contribution to make the UA id a config variable.

1 Like