gtm_triggers_update | R Documentation |
This takes a trigger resource and overwrites the existing trigger in GTM
gtm_triggers_update( account_id, container_id, workspace_id, trigger_id, trigger_object )
account_id |
Account Id |
container_id |
Container Id |
workspace_id |
Workspace Id |
trigger_id |
trigger Id |
trigger_object |
trigger Object |
Other trigger functions:
gtm_triggers_create()
,
gtm_triggers_delete()
,
gtm_triggers_get()
,
gtm_triggers_list()
,
gtm_triggers_revert()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.