Everytime wordpress stats updates, I need to provide the API key. Is there someway to automate this?
This is why:
The deactivation hook deletes your database information. I'm guessing you're manually deactivating the plugin, updating, and then re-activating? If so, that runs the deactivation hook. Fortunately, that's not from the latest version. This is:
So that shouldn't happen anymore.
By the way, you shouldn't think that this means you were doing anything wrong. They shouldn't be deleting information on deactivation, only on uninstall. Kind of strange that they were doing it at all...