The R way to interact with Google's Tag Manager API.
At the moment listing of elements is available, but in the future both updates and delete will be supported. This is not a professional package and serves mostly as a way of organising code snippets for my work.
To install the package in your
R setup just use
devtools and the
install_github() function like below
Authenticate to GTM API
List Accounts you have access
Let's say you want to get the details from
YOUR_ACCOUNT_ID, then you use the following
gtm_account(accountId = YOUR_ACCOUNT_ID)
List Containers per account
Similarly, to get the containers of
YOUR_ACCOUNT_ID, use the following
gtm_containers_list(accountId = YOUR_ACCOUNT_ID)