How to track changes in goals

I’m developing Service Management plugin whose objects are associated with SLA goals. The problem is that when someone edits goals, their id changes, and I lose that connection. Is there a way of getting associated with goals other than id? Or is it possible to track changes in project goals at runtime?