gtm_accounts_update | R Documentation |
This enables you to update the account metadata. You can update the account name and whether or not data is shared with Google.
gtm_accounts_update(account_id, name = NULL, shareData = c("TRUE", "FALSE"))
account_id |
Account Id |
name |
Account Display Name |
shareData |
Whether the account shares data anonymously with Google and others. This flag enables benchmarking by sharing your data in an anonymous form. Google will remove all identifiable information about your website, combine the data with hundreds of other anonymous sites and report aggregate trends in the benchmarking service. |
https://developers.google.com/tag-platform/tag-manager/api/v2/reference/accounts/update
Other account functions:
gtm_accounts_get()
,
gtm_accounts_list()
## Not run: account_id <- 12345678 new_account <- gtm_accounts_update(account_id, name = "New Container Name") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.