gtm_environments_create | R Documentation |
This creates a new GTM environment
gtm_environments_create( account_id, container_id, name, description = NULL, debug = c("TRUE", "FALSE"), url = NULL )
account_id |
Account Id |
container_id |
Container Id |
name |
The environment display name. Can be set or changed only on USER type environments. |
description |
The environment description. Can be set or changed only on USER type environments. |
debug |
Whether or not to enable debug by default for the environment. |
url |
Default preview page url for the environment. |
Other environment functions:
gtm_environments_delete()
,
gtm_environments_get()
,
gtm_environments_list()
,
gtm_environments_reauthorize()
,
gtm_environments_update()
## Not run: accountId <- 1234567 containerId <- 7654321 env <- gtm_environments_create(accountId, containerId, "Development") pp_env <- gtm_environments_create(accountId, containerId, "Pre-Prod", debug=TRUE, url="https://pp.example.com") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.