gtm_triggers_update: gtm_triggers_update

Description Usage Arguments

View source: R/gtm_triggers_methods.R

Description

Update a specific trigger from a GTM container.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gtm_triggers_update(
  account_id,
  container_id,
  workspace_id,
  token,
  trigger_id,
  trigger_df,
  new_name = NULL,
  verbose = FALSE
)

Arguments

account_id

The ID of the account

container_id

The ID of the container

workspace_id

The ID of the workspace

token

An OAuth token object

trigger_id

The ID of the trigger - can be either the numeric ID or a string of the trigger name (has to be exact!). Passing the numeric ID is the fastest method.

trigger_df

A three column df of the values you want to use for your trigger. Must be formatted by input argument (i.e. 'Event Name'), matching method (see GTM list, but for example 'endsWith'), and matching value, i.e. '_click'

new_name

The new name that you want to use for your trigger. Defaults to NULL so that you don't change the name of the trigger.

verbose

If you want a message letting you know that your results have been successfully retrieved. Defaults to FALSE


neugelb/gtmr documentation built on June 25, 2020, 10:06 a.m.