https://github.com/IronistM/googleTagManageR
An R package to interact with the Google Tag Manager API
https://github.com/IronistM/googleTagManageR
api google-tag-manager r
Last synced: 4 months ago
JSON representation
An R package to interact with the Google Tag Manager API
- Host: GitHub
- URL: https://github.com/IronistM/googleTagManageR
- Owner: IronistM
- License: gpl-3.0
- Created: 2017-04-19T20:31:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T14:11:32.000Z (over 4 years ago)
- Last Synced: 2024-08-13T07:14:01.173Z (8 months ago)
- Topics: api, google-tag-manager, r
- Language: R
- Homepage: https://ironistm.github.io/googleTagManageR/
- Size: 102 KB
- Stars: 13
- Watchers: 4
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: Readme.MD
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - IronistM/googleTagManageR - An R package to interact with the Google Tag Manager API (R)
README
[](https://travis-ci.org/IronistM/googleTagManageR)
[](https://codecov.io/github/IronistM/googleTagManageR?branch=master)## In Short
The R way to interact with Google's Tag Manager API.### Scope
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.### Credits
Most of this is adopted from the excellent [autoGoogleAPI](https://github.com/MarkEdmondson1234/autoGoogleAPI) package from [Mark Edmondson]([email protected]) and his most awesome [googleAnalyticsR](http://code.markedmondson.me/googleAnalyticsR) that I use daily.## Installation
To install the package in your `R` setup just use `devtools` and the `install_github()` function like below```R
install.packages('devtools')
devtools::install_github('IronistM/googleTagManageR')
```
## Examples### Authenticate to GTM API
```
gtm_auth()
```### List Accounts you have access
```R
gtm_accounts_list()
```Let's say you want to get the details from `YOUR_ACCOUNT_ID`, then you use the following
```R
gtm_account(accountId = YOUR_ACCOUNT_ID)
```### List Containers per account
Similarly, to get the containers of `YOUR_ACCOUNT_ID`, use the following
```R
gtm_containers_list(accountId = YOUR_ACCOUNT_ID)
```