unicef / iogt

BSD 2-Clause "Simplified" License
25 stars 35 forks source link

Feat / Adds user tracking via Matomo #1608

Closed Alihassanc5 closed 1 year ago

Alihassanc5 commented 1 year ago

Closes #1607

Alihassanc5 commented 1 year ago

@istride, it seems prudent for us to utilize the code from the django-matomo branch. It aligns with our requirements for tracking on non-JavaScript devices, preventing us to repeat the code. What are your thoughts on this?

istride commented 1 year ago

I think we should create our own app to replace django-matomo, which only provides a single template and templatetag that we would need to override anyway. This new app would need to provide:

Later, we may need to add the ability to manage configuration via site settings, and tracking app-specific events, so I think it makes sense to maintain our own app in preparation for those and other customisations in the future. I also think the door is still open to using django-matomo as a dependency, if it aligns with our use cases.