View source: R/gtm_variables_create_methods.R
Create a new GTM custom parameter variable
1 2 3 4 5 6 7 8 9 10 | gtm_variables_create_params(
account_id,
container_id,
workspace_id,
token,
variable_name,
set_default = FALSE,
default_value = NULL,
verbose = FALSE
)
|
account_id |
The ID of the account |
container_id |
The ID of the container |
workspace_id |
The ID of the workspace. Defaults to NULL because this will default to the default workspace. |
variable_name |
The name of the new custom variable |
set_default |
Do you want to set a default value? Logical vector, but defaults to FALSE |
default_value |
The default value you are setting |
verbose |
If you want a message letting you know that your results have been successfully retrieved. Defaults to FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.