exception
Options API
export default {
name: 'MyComponent',
methods: {
track () {
this.$gtag.exception({
'description': 'error_description',
'fatal': false
})
}
}
}
Composition API
import { useGtag } from "vue-gtag-next";
export default {
name: "MyComponent",
setup() {
const { exception } = useGtag()
const track = () => {
exception({
'description': 'error_description',
'fatal': false
})
};
return {
track,
};
},
};
Last updated