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 https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/templates/common_header_footer_components.mako#L575

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

1 Like