You can use gadget's UserPrefs to save any unique info. Once you store info in UserPrefs it remains permanently associated with gadget.
You can find more info for how to use it here: link: https://developers.google.com/gadgets/docs/fundamentals#SetPrefs
I hope it will help you.