I use the Cordova GA plugin to track events, but when testing in my browser I keep getting:
ReferenceError: plugin not defined
I tried many ways to check if a plugin was detected, but it still throws this error. How can I correctly check if a plugin has been defined before I call a function?
source
share