Description Usage Arguments Value Examples
Set or retrieve the Google Analytics viewId as an environment variable
1 | pc_set_ga_id(ga_id = NULL)
|
ga_id |
A numeric vector of length one corresponding to a Google Analyitcs viewId. |
The Google Analytics viewId currently recorded as environment variable.
1 2 3 4 5 6 | pc_set_ga_id(ga_id = 1234567)
# If set, this function can be used to retrieve the id.
my_ga_id <- pc_set_ga_id()
my_ga_id
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.