gmr_hit_timing: Send a timing type hit

Description Usage Arguments Details See Also Examples

View source: R/hit_types.R

Description

Suitable for tracking time lags

Usage

1
2
gmr_hit_timing(category, name, time, label = NULL, enhanced_ecom = NULL,
  ...)

Arguments

category

Specifies the timing category

name

Specifies the timing name

time

An integer in milliseconds

label

Optional label

enhanced_ecom

A gmr_ee generated via gmr_enhanced_ecom

...

Other named arguments to pass in as payload data

Details

Helper wrapper to send timing 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_timing("R_app","shiny_loadtime",3000, label = "appname")

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