pageview

import { pageview } from 'vue-gtag'

// Use the page_view official parameters
pageview({ page_path: '/about' })

// Use a string
pageview('/about')

// Use a route object
const route = useRoute()
pageview(route)

All these examples will track the page_view event in the same manner.

Last updated