Google Analytics with Plain javascript in mobile app

We have been using google analytics plugin for tracking in our mobile application.

Due to some reasons, this plugin is conflicting with one more plugin which is integrated in mobile app, so can we remove the google analytics plugin itself and can we implement it with just plain javascript ?