gtm_triggers_delete | R Documentation |
This deletes a trigger in a GTM workspace
gtm_triggers_delete( account_id, container_id, workspace_id, trigger_id, force = c(TRUE, FALSE) )
account_id |
Account Id |
container_id |
Container Id |
workspace_id |
Workspace Id |
trigger_id |
trigger Id |
force |
Force deletion without user input |
Other trigger functions:
gtm_triggers_create()
,
gtm_triggers_get()
,
gtm_triggers_list()
,
gtm_triggers_revert()
,
gtm_triggers_update()
## Not run: accountId <- 1234567 containerId <- 7654321 workspaceId <- 5 triggerId <- 13 gtm_triggers_delete(accountId, containerId, workspaceId, triggerId) # This will delete trigger %s. Are you sure you want to continue? # 1: Yes # 2: No # Selection: 1 # trigger 13 has been deleted. triggerId = 14 gtm_triggers_delete(accountId, containerId, workspaceId, triggerId, "TRUE") # Trigger 14 has been deleted. ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.