View source: R/gtm_triggers_methods.R
Create a new trigger for the GTM account
1 2 3 4 5 6 7 8 9 | gtm_triggers_create(
account_id,
container_id,
workspace_id,
token,
trigger_name,
trigger_df,
verbose = FALSE
)
|
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_name |
The name of the trigger |
trigger_df |
A three column dataframe 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' |
verbose |
If you want a message letting you know that your results have been successfully retrieved. Defaults to FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.