kartoza / prj.app

A django app for creating visual changelogs for software releases
30 stars 32 forks source link

add matomo metrics in base template #1452

Open Akiyamka opened 7 months ago

timlinux commented 7 months ago

@Akiyamka note that there are more than one instance of the changelog site out there so we need to softcode the URL into the site configuration.

timlinux commented 7 months ago

e.g. here https://github.com/kartoza/prj.app/blob/develop/deployment/.env.example

Akiyamka commented 7 months ago

I looked at how it is done for intercom and assumed that it would be correct to do the same for matomo. Is that correct?

timlinux commented 7 months ago

@dimasciput could you review and deploy on qgis changelog please?

Xpirix commented 6 months ago

@Akiyamka I think implementing django-matomo like you did in https://github.com/qgis/QGIS-Django/pull/320/files is a good way for django based projects. Thus, in the existing settings files, matomo variables can be loaded from the environments variables using os.environ that are specified in the .env generated from the sample .env.example.

Xpirix commented 6 months ago

@Akiyamka The django-matomo template can be customized. To disable cookies, for example: https://github.com/qgis/QGIS-Django/pull/333