v
v
vue-gtag
Github
Search…
v2
Get started
Migration v1 to v2
Bootstrap options
Auto tracking
Multiple domain tracking
Plugin hooks
API
Opt-in/out
Global namespace
Access gtag instance directly
Debug
Plugin options
Methods
pageview
event
screenview
customMap
purchase
linker
set
time
config
exception
Powered By
GitBook
event
export
default
{
name
:
'MyComponent'
,
methods
:
{
track
()
{
this
.
$gtag
.
event
(
<
action
>
,
{
'event_category'
:
<
category
>
,
'event_label'
:
<
label
>
,
'value'
:
<
value
>
})
}
}
}
Remember, this is just an example. check the all API parameters in the official gtag documentation
here
Methods - Previous
pageview
Next - Methods
screenview
Last modified
2yr ago
Copy link