Closed mahi2net closed 4 years ago
Hi I need to change the id: 'UA-XXXX-XX', dyanamically based on window.location.hostname. Is it possible and how ?
yes you can use it for example in a router hook or on mounted. Simply call this.$gtag('config','YOUR_KEY') https://github.com/nuxt-community/google-gtag#usage
this.$gtag('config','YOUR_KEY')
@dohomi can closed?
Hi I need to change the id: 'UA-XXXX-XX', dyanamically based on window.location.hostname. Is it possible and how ?