gmr_hit_event: Send a event type hit

Description Usage Arguments Details See Also Examples

View source: R/hit_types.R

Description

Suitable for tracking general events

Usage

1
2
gmr_hit_event(category, action, label = NULL, value = NULL,
  interaction = TRUE, enhanced_ecom = NULL, ...)

Arguments

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 gmr_ee generated via gmr_enhanced_ecom

...

Other named arguments to pass in as payload data

Details

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.

See Also

https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters

Examples

1
gmr_hit_event("R_cat","R_action","R_label",300)

MarkEdmondson1234/googleMeasureR documentation built on Oct. 27, 2019, 9:02 p.m.