export default { name: 'MyComponent', methods: { track () { this.$gtag.screenview({ app_name: 'MyApp', screen_name: 'Home page', }) } } }
Remember, this is just an example. check the all API parameters in the official gtag documentation here
Last updated 4 years ago