View source: R/gtm_variables_create_methods.R
Make the list to pass to the GTM API for a parameter, user property or data layer variable
1 2 3 4 5 6 | gtm_create_var(
variable_name,
var_code,
set_default = FALSE,
default_value = FALSE
)
|
variable_name |
The value of the GA web property to send data to |
var_code |
Either 'fup', 'md' or 'v' |
set_default |
Do you want to set a default value? Logical vector, but defaults to FALSE |
default_value |
Do you want to set a default value? Logical vector, but defaults to NULL |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.