Warning! If you are looking for strictly vue-gtag compatible with Vue3, you can simply install the latest vue-gtag v2. This package it's meant to be a new take on it, probably published under vue-gtag v3 soon.
Global Site Tag plugin for Vue 3
The global site tag (gtag.js) is a JavaScript tagging framework and API that allows you to send event data to Google Analytics, Google Ads, and Google Marketing Platform. For general gtag.js documentation, read the gtag.js developer guide.
Vue ^3.0.0
npm install vue-gtag-next
Please drop an issue, if you find something that doesn't work, or a feature request at https://github.com/MatteoGabriele/vue-gtag-next/issues
Follow me on twitter @matteo_gabriele for updates