matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.75k stars 2.63k forks source link

Allow to track Goals by Name instead of Goal ID #4665

Open nkuehn opened 10 years ago

nkuehn commented 10 years ago

Hello,

I'm fighting a bit with keeping the Goal IDs consistent across a set of websites that are using the identical Javascript and Webfront implementation (I'm tracking some goals manually from an ajax application).

As I can't choose the ID when creating a new Goal, I have to keep a strict click-flow when creating new website profiles on the server and once something has gone wrong (like, say, accidentally deleted the goal) I'm wrecked and have to wrestle with the DB.

It would be really great if one could either choose an (unused) ID when creating a new goal or be able to track Goals by Name on the JS API.

mattab commented 10 years ago

Thanks for the suggestion, I think it could make sense to track goals by name indeed.

mattab commented 10 years ago

What we could do is re-use the existing "Goal name" and the feature becomes very cool. It will help users integrate Piwik easily as keeping track of IDs is just un-natural I agree!

This would be awesome to have!

Tasks off top of my head: