@nkuehn opened this Issue on February 11th 2014


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 on February 15th 2014 Owner

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

@mattab commented on April 6th 2014 Owner

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:

  • add unit tests/integration tests
  • Match goal name case insensitive
  • When creating a goal, must check there is not already a goal with the same name/different case.
Powered by GitHub Issue Mirror