Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gtm_auth

Auth for GTM Specific Properties


Description

This function authenticates the user with Google Tag Manager To use your own GTM API credentials, either ensure that you have set the path to your OAuth2 API Credentials file in your 'GAR_CLIENT_JSON' variable in your .Renviron file and then restart your R session or set

Usage

gtm_auth(email = NULL, token = NULL)

Arguments

email

The email address for the Google Account

token

An existing Google Auth Token

Value

Invisibly, the token that has been saved to the session

Examples

## Not run: 
 # To use the included (shared) credentials
 library(googleTagManageR)
 gtm_auth()
 
 # To useyour own GCP credentials
 Sys.setenv("GAR_CLIENT_JSON" = "location/of/file.json")
 library(googleTagManageR)
 gtm_auth()
 
 # Reauthentication - if you've already logged in
 gtm_auth(email="me@mycompany.co.uk")
 
## End(Not run)

googleTagManageR

Access the 'Google Tag Manager' API using R

v0.1.6
MIT + file LICENSE
Authors
James Cottrill [aut, cre, cph], Mark Edmondson [ctb], Manos Parzakonis [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.