gtm_triggers_delete {googleTagManageR} | R Documentation |
Delete a trigger
Description
This deletes a trigger in a GTM workspace
Usage
gtm_triggers_delete(
account_id,
container_id,
workspace_id,
trigger_id,
force = c(TRUE, FALSE)
)
Arguments
account_id |
Account Id |
container_id |
Container Id |
workspace_id |
Workspace Id |
trigger_id |
trigger Id |
force |
Force deletion without user input |
See Also
Other trigger functions:
gtm_triggers_create()
,
gtm_triggers_get()
,
gtm_triggers_list()
,
gtm_triggers_revert()
,
gtm_triggers_update()
Examples
## 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)
[Package googleTagManageR version 0.2.0 Index]