gtm_accounts_update: Updates account metadata

View source: R/accounts.R

gtm_accounts_updateR Documentation

Updates account metadata

Description

This enables you to update the account metadata. You can update the account name and whether or not data is shared with Google.

Usage

gtm_accounts_update(account_id, name = NULL, shareData = c("TRUE", "FALSE"))

Arguments

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.

See Also

https://developers.google.com/tag-platform/tag-manager/api/v2/reference/accounts/update

Other account functions: gtm_accounts_get(), gtm_accounts_list()

Examples

## Not run: 

account_id <- 12345678
new_account <- gtm_accounts_update(account_id, name = "New Container Name")


## End(Not run)

googleTagManageR documentation built on April 17, 2022, 1:05 a.m.