Description Usage Arguments Details See Also Examples
Suitable for tracking general events
1 2 | gmr_hit_event(category, action, label = NULL, value = NULL,
interaction = TRUE, enhanced_ecom = NULL, ...)
|
category |
Specifies the event category |
action |
Specifies the event action. |
label |
Optional label |
value |
Optional value |
interaction |
Whether hit is interactive with page (affecting bounce rate) |
enhanced_ecom |
A |
... |
Other named arguments to pass in as payload data |
Helper wrapper to send event type hits. Specify named arguments to also send those, including overriding the helper arguments. E.g. set your own cid = "fixed-value" if you want to have hits to be recorded as coming from the same user.
https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
1 | gmr_hit_event("R_cat","R_action","R_label",300)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.