gtm_triggers_update {googleTagManageR} | R Documentation |
Update an existing trigger
Description
This takes a trigger resource and overwrites the existing trigger in GTM
Usage
gtm_triggers_update(
account_id,
container_id,
workspace_id,
trigger_id,
trigger_object
)
Arguments
account_id |
Account Id |
container_id |
Container Id |
workspace_id |
Workspace Id |
trigger_id |
trigger Id |
trigger_object |
trigger Object |
See Also
Other trigger functions:
gtm_triggers_create()
,
gtm_triggers_delete()
,
gtm_triggers_get()
,
gtm_triggers_list()
,
gtm_triggers_revert()
Examples
## Not run:
accountId <- 1234567
containerId <- 7654321
workspaceId <- 3
triggerId <- 8
updatedTrigger <- list(
name = 'More Complex Trigger - Updated',
type = 'pageview',
filter = list(
list(
type = 'contains',
parameter = list(
list(
type='template',
key = 'arg0',
value='{{Lookup Table}}'
),
list(
type='template',
key = 'arg1',
value='New Lookup Value'
)
)
)
)
)
newTrigger2 <- gtm_triggers_update(accountId, containerId, workspaceId, triggerId, updatedTrigger)
## End(Not run)
[Package googleTagManageR version 0.2.0 Index]