Unregistering ionic analytics after registering


In my app, I do a check when it loads whether the user agrees to share analytics data. If the user agrees, then $ionicAnalytics.register() is called.
However, after load, if the user then changes the setting to not share analytics, I don’t know how to intercept the calls to analytics. It seems overkill to have to wrap every call in my scripts to do a check if the user agrees to sharing their data. And plus how would I handle the tap events in the HTML.
Ideally there would be an $ionicAnalytics.unregister() event which I could call when the user disables analytics sharing (there doesn’t seem to be any reference to this in the docs).
Is there a method anyone is using to achieve this?