I am using Cordova GA plugin to track events, but when testing in my browser I keep getting:
ReferenceError: plugin is not defined
I tried many ways to check if the plugin has been defined, but it still throws this error. How can I properly check if the plugin has been defined before I invoke the function?