Arnaud73 / ngx-matomo

Matomo (aka. Piwik) web analytics for Angular applications
MIT License
102 stars 48 forks source link

Fix file name #26

Closed SkyLi7h closed 4 years ago

SkyLi7h commented 4 years ago

As mentioned at https://github.com/Arnaud73/ngx-matomo, the script should call matomo.php & motomo.js and not piwik.php/piwik.js

SkyLi7h commented 4 years ago

I'll propose another way later

Arnaud73 commented 4 years ago

Hi @SkyLi7h,

I had a discussion with Matomo maintainers regarding the name of the script and endpoint (https://forum.matomo.org/t/tracking-code-evolutions/33247). Since they plan to maintain piwik.js and piwik.php for a long time, I do not plan to rename them since it would break the library for people using old piwik releases. If you have a good reason for renaming those scripts, we can discuss it!

However, I am already working on version 1.0 of this library, and I rewrote the injection part of it. In order to support multiple Matomo trackers and be able to use a JS script coming from a different location, I chose to let the user to provide the full URL of the script and tracker(s). So this question (matomo.php vs. piwik.php) will become irrelevant.