| gtm_zones_create | R Documentation |
This takes a zone resource and creates a new zone in GTM.
gtm_zones_create(account_id, container_id, workspace_id, zone_object)
account_id |
Account Id |
container_id |
Container Id |
workspace_id |
Workspace Id |
zone_object |
Zone Object |
Other zone functions:
gtm_zones_delete(),
gtm_zones_get(),
gtm_zones_list(),
gtm_zones_revert(),
gtm_zones_update()
## Not run:
accountId <- 1234567
containerId <- 7654321
workspaceId <- 10
zone <- list(
accountId=accountId,
containerId=containerId,
workspaceId=workspaceId,
name="Marketing Zone",
childContainer=list(
list(
publicId="GTM-ABCDEF",
nickname="My Marketing Container"
)
)
)
new_zone <- gtm_zones_create(accountId, containerId, workspaceId, zone)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.