Maybe this can help you with part of the problem: https://quasar.dev/quasar-cli-webpack/developing-cordova-apps/managing-google-analytics/