Last updated 4 years ago
Remember, this is just an example. check the all API parameters in the official gtag documentation
export default { name: 'MyComponent', methods: { track () { this.$gtag.linker({ 'domains': ['example.com'] }) } } }
import { useGtag } from "vue-gtag-next"; export default { name: "MyComponent", setup() { const { linker } = useGtag() const track = () => { linker({ 'domains': ['example.com'] }) }; return { track, }; }, };