Ionic Google analytics

Error: undefined is not an object (evaluating ‘window.FirebasePlugin.grantPermission’)

So please help me. Thanks in advance