tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) -->
2 | // v0.0.1
3 | // Written by JooYoung Seo (jooyoung@psu.edu) and Atsushi Yasumoto on June 1st, 2020.
4 |
5 | document.addEventListener('DOMContentLoaded', function() {
6 | const codeList = document.getElementsByClassName("sourceCode");
7 | for (var i = 0; i < codeList.length; i++) {
8 | var linkList = codeList[i].getElementsByTagName('a');
9 | for (var j = 0; j < linkList.length; j++) {
10 | if (linkList[j].innerHTML === "") {
11 | linkList[j].setAttribute('aria-hidden', 'true');
12 | }
13 | }
14 | }
15 | });
16 |
--------------------------------------------------------------------------------
/docs/dev/articles/v4_files/header-attrs-2.10/header-attrs.js:
--------------------------------------------------------------------------------
1 | // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2 | // be compatible with the behavior of Pandoc < 2.8).
3 | document.addEventListener('DOMContentLoaded', function(e) {
4 | var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
5 | var i, h, a;
6 | for (i = 0; i < hs.length; i++) {
7 | h = hs[i];
8 | if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
9 | a = h.attributes;
10 | while (a.length > 0) h.removeAttribute(a[0].name);
11 | }
12 | });
13 |
--------------------------------------------------------------------------------
/docs/dev/articles/v4_files/header-attrs-2.11/header-attrs.js:
--------------------------------------------------------------------------------
1 | // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2 | // be compatible with the behavior of Pandoc < 2.8).
3 | document.addEventListener('DOMContentLoaded', function(e) {
4 | var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
5 | var i, h, a;
6 | for (i = 0; i < hs.length; i++) {
7 | h = hs[i];
8 | if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
9 | a = h.attributes;
10 | while (a.length > 0) h.removeAttribute(a[0].name);
11 | }
12 | });
13 |
--------------------------------------------------------------------------------
/docs/dev/articles/v4_files/header-attrs-2.7/header-attrs.js:
--------------------------------------------------------------------------------
1 | // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2 | // be compatible with the behavior of Pandoc < 2.8).
3 | document.addEventListener('DOMContentLoaded', function(e) {
4 | var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
5 | var i, h, a;
6 | for (i = 0; i < hs.length; i++) {
7 | h = hs[i];
8 | if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
9 | a = h.attributes;
10 | while (a.length > 0) h.removeAttribute(a[0].name);
11 | }
12 | });
13 |
--------------------------------------------------------------------------------
/docs/dev/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/dev/favicon-16x16.png
--------------------------------------------------------------------------------
/docs/dev/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/dev/favicon-32x32.png
--------------------------------------------------------------------------------
/docs/dev/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/dev/favicon.ico
--------------------------------------------------------------------------------
/docs/dev/link.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
--------------------------------------------------------------------------------
/docs/dev/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/dev/logo.png
--------------------------------------------------------------------------------
/docs/dev/pkgdown.yml:
--------------------------------------------------------------------------------
1 | pandoc: 2.19.2
2 | pkgdown: 2.0.6
3 | pkgdown_sha: ~
4 | articles:
5 | big-query: big-query.html
6 | faq: faq.html
7 | ganalytics: ganalytics.html
8 | management: management.html
9 | measurement-protocol-v2: measurement-protocol-v2.html
10 | model-templates: model-templates.html
11 | models: models.html
12 | practical-tips: practical-tips.html
13 | reporting-ga4: reporting-ga4.html
14 | rmarkdown: rmarkdown.html
15 | setup: setup.html
16 | shiny: shiny.html
17 | user-activity: user-activity.html
18 | v3: v3.html
19 | v4: v4.html
20 | last_built: 2022-11-23T07:58Z
21 | urls:
22 | reference: https://code.markedmondson.me/googleAnalyticsR/reference
23 | article: https://code.markedmondson.me/googleAnalyticsR/articles
24 |
25 |
--------------------------------------------------------------------------------
/docs/dev/reference/Rplot001.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/dev/reference/Rplot001.png
--------------------------------------------------------------------------------
/docs/dev/reference/figures/lifecycle-archived.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/dev/reference/figures/lifecycle-defunct.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/dev/reference/figures/lifecycle-deprecated.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/dev/reference/figures/lifecycle-experimental.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/dev/reference/figures/lifecycle-maturing.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/dev/reference/figures/lifecycle-questioning.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/dev/reference/figures/lifecycle-stable.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/dev/reference/figures/lifecycle-superseded.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/dev/reference/figures/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/dev/reference/figures/logo.png
--------------------------------------------------------------------------------
/docs/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/favicon-16x16.png
--------------------------------------------------------------------------------
/docs/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/favicon-32x32.png
--------------------------------------------------------------------------------
/docs/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/favicon.ico
--------------------------------------------------------------------------------
/docs/link.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
--------------------------------------------------------------------------------
/docs/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/logo.png
--------------------------------------------------------------------------------
/docs/pkgdown.yml:
--------------------------------------------------------------------------------
1 | pandoc: 2.14.0.3
2 | pkgdown: 2.0.1
3 | pkgdown_sha: ~
4 | articles:
5 | big-query: big-query.html
6 | faq: faq.html
7 | ganalytics: ganalytics.html
8 | management: management.html
9 | measurement-protocol-v2: measurement-protocol-v2.html
10 | model-templates: model-templates.html
11 | models: models.html
12 | practical-tips: practical-tips.html
13 | reporting-ga4: reporting-ga4.html
14 | rmarkdown: rmarkdown.html
15 | setup: setup.html
16 | shiny: shiny.html
17 | user-activity: user-activity.html
18 | v3: v3.html
19 | v4: v4.html
20 | last_built: 2022-01-13T13:00Z
21 | urls:
22 | reference: https://code.markedmondson.me/googleAnalyticsR/reference
23 | article: https://code.markedmondson.me/googleAnalyticsR/articles
24 |
25 |
--------------------------------------------------------------------------------
/docs/reference/Rplot001.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/reference/Rplot001.png
--------------------------------------------------------------------------------
/docs/reference/figures/gar_logo_1000.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/reference/figures/gar_logo_1000.png
--------------------------------------------------------------------------------
/docs/reference/figures/lifecycle-archived.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/reference/figures/lifecycle-defunct.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/reference/figures/lifecycle-deprecated.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/reference/figures/lifecycle-experimental.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/reference/figures/lifecycle-maturing.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/reference/figures/lifecycle-questioning.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/reference/figures/lifecycle-stable.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/reference/figures/lifecycle-superseded.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/reference/figures/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/docs/reference/figures/logo.png
--------------------------------------------------------------------------------
/googleAnalyticsR.Rproj:
--------------------------------------------------------------------------------
1 | Version: 1.0
2 |
3 | RestoreWorkspace: Default
4 | SaveWorkspace: Default
5 | AlwaysSaveHistory: Default
6 |
7 | EnableCodeIndexing: Yes
8 | UseSpacesForTab: Yes
9 | NumSpacesForTab: 2
10 | Encoding: UTF-8
11 |
12 | RnwWeave: Sweave
13 | LaTeX: pdfLaTeX
14 |
15 | BuildType: Package
16 | PackageUseDevtools: Yes
17 | PackageInstallArgs: --no-multiarch --with-keep.source
18 | PackageRoxygenize: rd,collate,namespace,vignette
19 |
--------------------------------------------------------------------------------
/inst/client/default_gcp_client.json:
--------------------------------------------------------------------------------
1 | {"web":{"client_id":"289759286325-h15qtntnnounclih9tnfdj8ft1dlh1n1.apps.googleusercontent.com","project_id":"g-analytics-r","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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","redirect_uris":["https://code.markedmondson.me/googleAnalyticsR/dev/oob"]}}
--------------------------------------------------------------------------------
/inst/hexlogo/hex.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/inst/hexlogo/hex.png
--------------------------------------------------------------------------------
/inst/hexlogo/logo.R:
--------------------------------------------------------------------------------
1 | library(hexSticker)
2 | imgurl <- "inst/hexlogo/googleAnalyticsRlogo.png"
3 | sticker(imgurl, package="googleAnalyticsR",
4 | p_size=4, s_x=1, s_y=0.85, s_width=.6,
5 | filename="inst/hexlogo/hex.png",
6 | p_color = "#f27f22", p_family = "sans", p_y = 1.45,
7 | h_color = "#767676", h_fill = "#ffffff")
8 |
--------------------------------------------------------------------------------
/inst/hexlogo/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/inst/hexlogo/logo.png
--------------------------------------------------------------------------------
/inst/hexlogo/twitter-default-play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/inst/hexlogo/twitter-default-play.png
--------------------------------------------------------------------------------
/inst/jupyter/README.md:
--------------------------------------------------------------------------------
1 | # Jupyter resources
2 |
3 | This contains resources helpful for running `googleAnalyticsR` on Jupyter notebooks, in particular those avaialable on the Google Cloud Platform's AI Hub where the package is installed by default.
4 |
--------------------------------------------------------------------------------
/inst/models/build_models/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM gcr.io/gcer-public/googleanalyticsr
2 |
3 | RUN ulimit -s 16384 \
4 | && R -e 'install.packages("Boom");'
5 |
6 | RUN install2.r --error \
7 | -r 'http://cran.rstudio.com' \
8 | xts dygraphs
9 |
10 | RUN install2.r --error \
11 | -r 'http://cran.rstudio.com' \
12 | CausalImpact
13 |
14 | RUN install2.r --error \
15 | -r 'http://cran.rstudio.com' \
16 | shiny plotly
17 |
18 | RUN installGithub.r MarkEdmondson1234/googleAnalyticsR \
19 | && R -e 'sessionInfo()' \
20 | && rm -rf /tmp/downloaded_packages/ /tmp/*.rds
--------------------------------------------------------------------------------
/inst/models/examples/decomp_ga.gamr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/inst/models/examples/decomp_ga.gamr
--------------------------------------------------------------------------------
/inst/models/examples/decomp_ga_advanced.gamr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/inst/models/examples/decomp_ga_advanced.gamr
--------------------------------------------------------------------------------
/inst/models/examples/ga-effect.gamr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/inst/models/examples/ga-effect.gamr
--------------------------------------------------------------------------------
/inst/models/examples/ga4-trend.gamr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/inst/models/examples/ga4-trend.gamr
--------------------------------------------------------------------------------
/inst/models/examples/market-basket.gamr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/inst/models/examples/market-basket.gamr
--------------------------------------------------------------------------------
/inst/models/examples/time-normalised.gamr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/inst/models/examples/time-normalised.gamr
--------------------------------------------------------------------------------
/inst/models/model_scripts/decomp_advanced.R:
--------------------------------------------------------------------------------
1 | # ga_model: Performs decomposition and creates a plot
2 |
3 | # no libraries needed
4 |
5 | # fetch data
6 | data_f <- function(view_id,
7 | date_range = c(Sys.Date() - 300, Sys.Date()),
8 | metric = "sessions",
9 | ...) {
10 | o <- google_analytics(view_id,
11 | date_range = date_range,
12 | metrics = metric, dimensions = "date",
13 | max = -1)
14 | o$the_metric <- o[, metric]
15 | o
16 | }
17 |
18 | # model data
19 | model_f <- function(df, frequency, ...) {
20 | decompose(ts(df$the_metric, frequency = as.numeric(frequency)))
21 | }
22 |
23 | # output data
24 | output_f <- function(df, ...){
25 | plot(df)
26 | }
27 |
28 |
29 | # use via ga_model_make()
30 |
--------------------------------------------------------------------------------
/inst/models/model_scripts/ga4-dygraphs.R:
--------------------------------------------------------------------------------
1 | # ga_model: GA4 Metric Trend
2 |
3 | library(xts)
4 | library(dygraphs)
5 |
6 | # fetch data
7 | data_f <- function(view_id, date_range = c("400daysAgo", "yesterday"), metrics = c("sessions"),
8 | ...) {
9 | ga_data(view_id, metrics = metrics, date_range = date_range, dimensions = "date",
10 | limit = -1, orderBys = ga_data_order(+date))
11 | }
12 |
13 | # model data
14 | model_f <- function(df, ...) {
15 | xts::xts(df[, -1], order.by = df$date)
16 | }
17 |
18 | # output data
19 | output_f <- function(df, ...) {
20 | require(dygraphs)
21 | dygraph(df, main = "GA4 trend- googleAnalyticsR") %>% dyAxis("x", label = "Date") %>%
22 | dyOptions(axisLineWidth = 1.5, drawGrid = FALSE)
23 | }
24 |
25 | # use via ga_model_make()
26 |
--------------------------------------------------------------------------------
/inst/models/model_scripts/ga4-first-last-touch.R:
--------------------------------------------------------------------------------
1 | data_f <- function(view_id,
2 | date_range = c("30daysAgo","yesterday"),
3 | ){
4 | myMessage("Warning - this is an expensive API call, don't use it on too long a date range", level = 3)
5 | ga_data(view_id,
6 | date_range = date_range,
7 | metrics = "sessions",
8 | dimensions = c("firstUserMedium", "sessionMedium"))
9 |
10 | }
11 |
12 | model_f <- function(df){
13 |
14 | nodes <- unique(c(ga_data$firstUserMedium, ga_data$sessionMedium))
15 |
16 | list(
17 | nodes = data.frame(
18 | name = unique(c(ga_data$firstUserMedium, ga_data$sessionMedium)),
19 | stringsAsFactors = FALSE),
20 | links = data.frame(
21 | source = df$firstUserMedium,
22 | target = df$sessionMedium,
23 | value = df$sessions,
24 | stringsAsFactors = FALSE
25 | )
26 | )
27 | }
28 |
29 | plot_f <- function(df){
30 |
31 | }
--------------------------------------------------------------------------------
/inst/models/model_scripts/ua-decomp.R:
--------------------------------------------------------------------------------
1 | # ga_model: Performs decomposition and creates a plot
2 |
3 | # no libraries needed
4 |
5 | # fetch data
6 | data_f <- function(view_id, date_range = c(Sys.Date() - 300, Sys.Date()), ...) {
7 | google_analytics(view_id,
8 | date_range = date_range,
9 | metrics = "sessions", dimensions = "date",
10 | max = -1)
11 | }
12 |
13 | # model data
14 | model_f <- function(df, ...) {
15 | decompose(ts(df$sessions, frequency = 7))
16 | }
17 |
18 | # output data
19 | output_f <- function(df, ...){
20 | plot(df)
21 | }
22 |
23 | # use via ga_model_make()
24 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/basic/ui.R:
--------------------------------------------------------------------------------
1 | ## basic ui.R
2 | fluidPage(title = "{{ shiny_title }}",
3 | {{ auth_ui }},
4 | {{{ date_range }}},
5 | h2("Model Output"),
6 | {{{ model_ui }}}
7 | )
8 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/basic_app/app.R:
--------------------------------------------------------------------------------
1 | ## basic_full ui.R
2 | library(shiny)
3 | library(googleAuthR)
4 | library(googleAnalyticsR)
5 | {{{ model_libraries }}}
6 |
7 | gar_set_client(web_json = "{{ web_json }}",
8 | scopes = "{{ scopes }}",
9 | activate = "web")
10 | options(googleAuthR.redirect = "{{ deployed_url }}")
11 |
12 | # loads pre-existing models
13 | {{{ model_load }}}
14 |
15 | ## ui.R
16 | ui <- fluidPage(title = "{{ shiny_title }}",
17 | {{ auth_ui }},
18 | {{{ date_range }}},
19 | h2("Model Output"),
20 | {{{ model_ui }}}
21 |
22 | )
23 |
24 | server <- function(input, output, session){
25 |
26 | token <- gar_shiny_auth(session)
27 |
28 | {{{ auth_accounts }}}
29 |
30 | # module for authentication
31 | view_id <- {{ auth_server }}
32 |
33 | # module to display model results
34 | {{{ model_server }}}
35 |
36 | }
37 |
38 | shinyApp(gar_shiny_ui(ui, login_ui = silent_auth), server)
39 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/boilerplate/Dockerfile_app:
--------------------------------------------------------------------------------
1 | # from rocker/shiny with googleAnalyticsR installed & configued for Cloud Run
2 | FROM gcr.io/gcer-public/googleanalyticsr-shiny-cloudrun
3 |
4 | # add any dependencies for your app here
5 | # RUN install2.r --error -r 'http://cran.rstudio.com' googleAnalyticsR
6 | # RUN installGithub.r MarkEdmondson1234/googleAnalyticsR
7 |
8 | COPY . /srv/shiny-server/
9 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/boilerplate/Dockerfile_ui_server:
--------------------------------------------------------------------------------
1 | # from rocker/shiny with googleAnalyticsR installed & configued for Cloud Run
2 | FROM gcr.io/gcer-public/googleanalyticsr-shiny-cloudrun
3 |
4 | # add any dependencies for your app here
5 | # RUN install2.r --error -r 'http://cran.rstudio.com' googleAnalyticsR
6 | # RUN installGithub.r MarkEdmondson1234/googleAnalyticsR
7 |
8 | COPY app.R /srv/shiny-server/app.R
9 | COPY app/ /srv/shiny-server/app/
10 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/boilerplate/deploy.R:
--------------------------------------------------------------------------------
1 | # use this file to deploy the app online e.g. shinyapps.io
2 | library(shiny)
3 | library(googleAuthR)
4 |
5 | ui <- source("app/ui.R", chdir = TRUE)$value
6 | server <- source("app/server.R", chdir = TRUE)$value
7 |
8 | shinyApp(gar_shiny_ui(ui, login_ui = silent_auth), server)
9 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/boilerplate/header_boilerplate.R:
--------------------------------------------------------------------------------
1 | # ---start header_boilerplate.R
2 | library(shiny)
3 | library(googleAuthR)
4 | library(googleAnalyticsR)
5 | {{{ model_libraries }}}
6 |
7 | gar_set_client(web_json = "{{ web_json }}",
8 | scopes = "{{ scopes }}",
9 | activate = "web")
10 | options(googleAuthR.redirect = "{{ deployed_url }}")
11 |
12 | # loads pre-existing models
13 | {{{ model_load }}}
14 | # ---end header_boilerplate.R
15 |
16 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/boilerplate/server_app_boilerplate.R:
--------------------------------------------------------------------------------
1 |
2 | # ---start server_app_boilerplate.R
3 | server <- function(input, output, session){
4 |
5 | token <- gar_shiny_auth(session)
6 |
7 | {{{ auth_accounts }}}
8 |
9 | # module for authentication
10 | view_id <- {{ auth_server }}
11 |
12 | # module to display model results
13 | {{{ model_server }}}
14 |
15 | }
16 |
17 | shinyApp(gar_shiny_ui(ui, login_ui = silent_auth), server)
18 | # ---end server_app_boilerplate.R
19 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/boilerplate/server_boilerplate.R:
--------------------------------------------------------------------------------
1 | # ---start server_boilerplate.R
2 | # loads pre-existing models
3 | {{{ model_load }}}
4 |
5 | function(input, output, session){
6 |
7 | token <- gar_shiny_auth(session)
8 |
9 | {{{ auth_accounts }}}
10 |
11 | # module for authentication
12 | view_id <- {{ auth_server }}
13 |
14 | # module to display model results
15 | {{{ model_server }}}
16 |
17 | }
18 | # ---end server_boilerplate.R
19 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/gentelella/ui.R:
--------------------------------------------------------------------------------
1 | # gentelella ui.R
2 | library(gentelellaShiny) # ui theme
3 |
4 | gentelellaPage(
5 | menuItems = sideBarElement(a("Start Again", href="/")),
6 | title_tag = "GA time normalised pages",
7 | site_title = a(class="site_title", icon("clock"), span("Time Normalised")),
8 | footer = "Made with googleAnalyticsR::ga_model_shiny()",
9 |
10 | # shiny UI elements
11 | h3("Choose GA account"),
12 | {{ auth_ui }},
13 | {{{ date_range }}},
14 | h3("Time Normalised pages"),
15 | {{{ model_ui }}},
16 | br()
17 |
18 | )
19 |
20 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/html_based/template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{ headContent() }}
6 |
7 |
8 |
9 | {{ auth_ui }}
10 | {{ date_range }}
11 | {{ model_ui }}
12 |
13 |
14 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/html_based/ui.R:
--------------------------------------------------------------------------------
1 | # contents of a file
2 | ## ui.R ##
3 | htmlTemplate(
4 | "template.html",
5 | auth_ui = {{ auth_ui }},
6 | date_range = {{{ date_range }}},
7 | model_ui = {{{ model_ui }}}
8 | )
9 |
--------------------------------------------------------------------------------
/inst/models/shiny_templates/html_based/www/dummy.js:
--------------------------------------------------------------------------------
1 | //nocontent
--------------------------------------------------------------------------------
/inst/models/shiny_templates/shinythemes/ui.R:
--------------------------------------------------------------------------------
1 | library(shinythemes)
2 | ## basic ui.R
3 | theme <- "{{ theme }}"
4 | if(!nzchar(theme)) theme <- "cerulean"
5 |
6 | the_theme <- shinytheme(theme)
7 |
8 | # a list of the model objects
9 | models <- {{ model_list }}
10 |
11 | # uses models (a list of models) to create the model UI
12 | shinytheme_tabPanel <- function(models){
13 | model_n <- paste0("model", seq_along(models))
14 | tabs <- mapply(
15 | function(x,y) shiny::tabPanel(y$model$description, y$ui(x)),
16 | x=model_n, y=models,
17 | SIMPLIFY = FALSE, USE.NAMES = FALSE)
18 |
19 | do.call(shiny::tabsetPanel, args = tabs)
20 | }
21 |
22 | shiny::navbarPage(
23 | title = "{{ shiny_title }}",
24 | theme = the_theme,
25 | shiny::tabPanel("Models",
26 | {{ auth_ui }},
27 | shiny::sidebarPanel(
28 | {{{ date_range }}}
29 | ),
30 | shiny::mainPanel(
31 | shinytheme_tabPanel(models)
32 | )
33 | )
34 | )
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/inst/rstudio/addins.dcf:
--------------------------------------------------------------------------------
1 | Name: GAv4 Segment Builder
2 | Description: Helper to construct GAv4 API calls.
3 | Binding: gadget_GASegment
4 | Interactive: true
--------------------------------------------------------------------------------
/inst/shiny/ga4-example/segment_ga4_helper/app.R:
--------------------------------------------------------------------------------
1 | library(shiny)
2 | library(googleAnalyticsR)
3 |
4 | ui <- shinyUI(fluidPage(
5 |
6 | segmentBuilderUI("test1")
7 |
8 | ))
9 |
10 |
11 | server <- shinyServer(function(input, output, session) {
12 |
13 | callModule(segmentBuilder, "test1")
14 |
15 | })
16 |
17 | # Run the application
18 | shinyApp(ui = ui, server = server)
--------------------------------------------------------------------------------
/inst/shiny/hello-world-models/DESCRIPTION:
--------------------------------------------------------------------------------
1 | Title: Using ga_model Shiny modules
2 | Author: Mark Edmondson
3 | AuthorUrl: http://code.markedmondson.me/googleAnalyticsR/
4 | License: MIT
5 | DisplayMode: Showcase
6 | Type: Shiny
--------------------------------------------------------------------------------
/inst/shiny/hello-world-models/README.md:
--------------------------------------------------------------------------------
1 | This is an example of how to use `ga_model_*` functions to create Shiny apps.
2 |
3 | The app authenticates using `gar_shiny_*` from `googleAuthR`, then loads a preexisting model that takes care of the UI and server side logic for fetching, modelling and plotting your Google Analytics data.
4 |
--------------------------------------------------------------------------------
/inst/shiny/hello-world-models/ga-web-client.json:
--------------------------------------------------------------------------------
1 | {"web":{"client_id":"1080525199262-qecndq7frddi66vr35brgckc1md5rgcl.apps.googleusercontent.com","project_id":"mark-edmondson-gde","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"3nVkQuvrooNO8t2OId4Vtha4","redirect_uris":["http://localhost"],"javascript_origins":["https://www.example.com","http://localhost:1221"]}}
--------------------------------------------------------------------------------
/inst/shiny/hello-world-shinyapps/DESCRIPTION:
--------------------------------------------------------------------------------
1 | Title: Deployment to shinyapps.io example
2 | Author: Mark Edmondson
3 | AuthorUrl: http://code.markedmondson.me/googleAuthR/
4 | License: MIT
5 | DisplayMode: Showcase
6 | Type: Shiny
--------------------------------------------------------------------------------
/inst/shiny/hello-world-shinyapps/README.md:
--------------------------------------------------------------------------------
1 | This is an example of how to deploy to shinyapps.io using the newer `gar_shiny_*` functions.
2 |
3 | Note the additional option `options(googleAuthR.redirect = "https://mark.shinyapps.io/googleAnalyticsR_test_deployment/")` which should be set to the same URL as the redirect URL you need to configure in your Google Project for web application credentials.
4 |
--------------------------------------------------------------------------------
/inst/shiny/hello-world-shinyapps/app.R:
--------------------------------------------------------------------------------
1 | library(shiny)
2 | library(googleAuthR)
3 | library(googleAnalyticsR)
4 |
5 | gar_set_client(web_json = "ga-web-client.json",
6 | scopes = "https://www.googleapis.com/auth/analytics.readonly")
7 |
8 | options(googleAuthR.redirect = "https://mark.shinyapps.io/googleAnalyticsR_test_deployment/")
9 |
10 | ## ui.R
11 | ui <- fluidPage(title = "googleAnalyticsR Test Deployment",
12 |
13 | authDropdownUI("auth_menu"),
14 | textOutput("viewid"),
15 | textOutput("client_id")
16 |
17 | )
18 |
19 | ## server.R
20 | server <- function(input, output, session){
21 |
22 | gar_shiny_auth(session)
23 |
24 | al <- reactive(ga_account_list())
25 | view_id <- callModule(authDropdown, "auth_menu", ga.table = al)
26 |
27 | output$viewid <- renderText(view_id())
28 |
29 | output$client_id <- renderText(getOption("googleAuthR.webapp.client_id"))
30 |
31 | }
32 |
33 | shinyApp(gar_shiny_ui(ui, login_ui = silent_auth), server)
34 |
--------------------------------------------------------------------------------
/inst/shiny/hello-world-shinyapps/ga-web-client.json:
--------------------------------------------------------------------------------
1 | {"web":{"client_id":"1080525199262-qecndq7frddi66vr35brgckc1md5rgcl.apps.googleusercontent.com","project_id":"mark-edmondson-gde","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"3nVkQuvrooNO8t2OId4Vtha4","redirect_uris":["http://localhost"],"javascript_origins":["https://www.example.com","http://localhost:1221"]}}
--------------------------------------------------------------------------------
/inst/shiny/models-ga-effect/DESCRIPTION:
--------------------------------------------------------------------------------
1 | Title: Using ga_model Shiny modules
2 | Author: Mark Edmondson
3 | AuthorUrl: http://code.markedmondson.me/googleAnalyticsR/
4 | License: MIT
5 | DisplayMode: Showcase
6 | Type: Shiny
--------------------------------------------------------------------------------
/inst/shiny/models-ga-effect/README.md:
--------------------------------------------------------------------------------
1 | This is an example of how to use `ga_model_*` functions to use a more complicated model, in this case one that uses CausalImpact to judge effects on SEO traffic.
2 |
3 | Note the end code is the same as simpler models. You can add more features such as drop downs and sliders as you require them to pass to the model.
4 |
5 |
--------------------------------------------------------------------------------
/man/authDropdownUI.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/shiny-modules.R
3 | \name{authDropdownUI}
4 | \alias{authDropdownUI}
5 | \title{authDropdown UI Shiny Module}
6 | \usage{
7 | authDropdownUI(id, width = NULL, inColumns = FALSE)
8 | }
9 | \arguments{
10 | \item{id}{Shiny id.}
11 |
12 | \item{width}{The width of the input}
13 |
14 | \item{inColumns}{whether to wrap selectInputs in width=4 columns.
15 |
16 | Shiny Module for use with \link{authDropdown}.}
17 | }
18 | \value{
19 | Shiny UI
20 | }
21 | \description{
22 | Makes a dropdown row for use for authentication.
23 | }
24 | \seealso{
25 | Other Shiny modules:
26 | \code{\link{accountPickerUI}()},
27 | \code{\link{authDropdown}()},
28 | \code{\link{metricDimensionSelectUI}()},
29 | \code{\link{multi_select}()},
30 | \code{\link{multi_selectUI}()}
31 | }
32 | \concept{Shiny modules}
33 |
--------------------------------------------------------------------------------
/man/dim_fil_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{dim_fil_ga4-class}
5 | \alias{dim_fil_ga4-class}
6 | \title{\code{dim_fil_ga4} class.}
7 | \description{
8 | Dimension filter.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/dim_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{dim_ga4-class}
5 | \alias{dim_ga4-class}
6 | \title{\code{dim_ga4} class.}
7 | \description{
8 | Dimension.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/dynamicSegment_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{dynamicSegment_ga4-class}
5 | \alias{dynamicSegment_ga4-class}
6 | \title{\code{dynamicSegment_ga4} class.}
7 | \description{
8 | Dynamic Segment.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/figures/lifecycle-archived.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/man/figures/lifecycle-defunct.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/man/figures/lifecycle-deprecated.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/man/figures/lifecycle-experimental.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/man/figures/lifecycle-maturing.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/man/figures/lifecycle-questioning.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/man/figures/lifecycle-stable.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/man/figures/lifecycle-superseded.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/man/figures/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/man/figures/logo.png
--------------------------------------------------------------------------------
/man/filter_clauses_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{.filter_clauses_ga4-class}
5 | \alias{.filter_clauses_ga4-class}
6 | \title{\code{.filter_clauses_ga4} class.}
7 | \description{
8 | Filter clauses class union.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/ga_adwords.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/adwords.R
3 | \name{ga_adwords}
4 | \alias{ga_adwords}
5 | \title{Get AdWords Link meta data}
6 | \usage{
7 | ga_adwords(accountId, webPropertyId, webPropertyAdWordsLinkId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{webPropertyAdWordsLinkId}{AdWords Link Id}
15 | }
16 | \value{
17 | AdWords Meta data
18 | }
19 | \description{
20 | Get AdWords Link meta data
21 | }
22 | \seealso{
23 | Other Google Ad management functions:
24 | \code{\link{ga_adwords_add_linkid}()},
25 | \code{\link{ga_adwords_delete_linkid}()},
26 | \code{\link{ga_adwords_list}()}
27 | }
28 | \concept{Google Ad management functions}
29 |
--------------------------------------------------------------------------------
/man/ga_adwords_list.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/adwords.R
3 | \name{ga_adwords_list}
4 | \alias{ga_adwords_list}
5 | \title{List AdWords}
6 | \usage{
7 | ga_adwords_list(accountId, webPropertyId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 | }
14 | \value{
15 | AdWords Links
16 | }
17 | \description{
18 | List AdWords
19 | }
20 | \seealso{
21 | Other Google Ad management functions:
22 | \code{\link{ga_adwords}()},
23 | \code{\link{ga_adwords_add_linkid}()},
24 | \code{\link{ga_adwords_delete_linkid}()}
25 | }
26 | \concept{Google Ad management functions}
27 |
--------------------------------------------------------------------------------
/man/ga_allowed_metric_dim.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/custom_dims_mets.R
3 | \name{ga_allowed_metric_dim}
4 | \alias{ga_allowed_metric_dim}
5 | \title{Create named list of allowed GA metrics/dimensions}
6 | \usage{
7 | ga_allowed_metric_dim(
8 | type = c("METRIC", "DIMENSION"),
9 | subType = c("all", "segment", "cohort"),
10 | callAPI = FALSE
11 | )
12 | }
13 | \arguments{
14 | \item{type}{Type of parameter to create}
15 |
16 | \item{subType}{to restrict to only those in this type}
17 |
18 | \item{callAPI}{This will update the meta table (Requires online authorization)
19 |
20 | This is useful to expand goalXCompletions to all the possibilities,
21 | as well as restricting to those that variables that work with your API call.
22 |
23 | Use internal meta table, but you have option to update to the latest version.}
24 | }
25 | \value{
26 | A named list of parameters for use in API calls
27 | }
28 | \description{
29 | Create named list of allowed GA metrics/dimensions
30 | }
31 |
--------------------------------------------------------------------------------
/man/ga_auth_setup.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/setup_service.R
3 | \name{ga_auth_setup}
4 | \alias{ga_auth_setup}
5 | \title{Setup wizard for authentication options}
6 | \usage{
7 | ga_auth_setup()
8 | }
9 | \description{
10 | Setup wizard for authentication options
11 | }
12 |
--------------------------------------------------------------------------------
/man/ga_cache_call.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/cache.R
3 | \name{ga_cache_call}
4 | \alias{ga_cache_call}
5 | \title{Setup caching of API calls}
6 | \usage{
7 | ga_cache_call(cache_location)
8 | }
9 | \arguments{
10 | \item{cache_location}{If \code{RAM} will save to memory, or specify a file folder location}
11 | }
12 | \description{
13 | Lets you cache API calls to disk
14 | }
15 | \details{
16 | By default this is turned on upon package load to \code{RAM}.
17 | Should you want to cache calls to a folder then run this function to specify where.
18 | }
19 |
--------------------------------------------------------------------------------
/man/ga_clientid_hash.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/client_id.R
3 | \name{ga_clientid_hash}
4 | \alias{ga_clientid_hash}
5 | \title{Get hashed version of client id (also known as hashClientId, hashedClientId, or BigQuery's fullVisitorId)}
6 | \usage{
7 | ga_clientid_hash(webPropertyId, clientId)
8 | }
9 | \arguments{
10 | \item{webPropertyId}{Web Property Id}
11 |
12 | \item{clientId}{Client Id}
13 | }
14 | \value{
15 | hashedClientId object list
16 | }
17 | \description{
18 | Get hashed version of client id (also known as hashClientId, hashedClientId, or BigQuery's fullVisitorId)
19 | }
20 | \seealso{
21 | Other clientid functions:
22 | \code{\link{ga_clientid_activity}()},
23 | \code{\link{ga_clientid_activity_unnest}()},
24 | \code{\link{ga_clientid_deletion}()}
25 | }
26 | \concept{clientid functions}
27 |
--------------------------------------------------------------------------------
/man/ga_custom_datasource.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/custom_data_source.R
3 | \name{ga_custom_datasource}
4 | \alias{ga_custom_datasource}
5 | \title{List Custom Data Sources}
6 | \usage{
7 | ga_custom_datasource(accountId, webPropertyId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 | }
14 | \value{
15 | Custom Data Source
16 | }
17 | \description{
18 | Get a list of custom data sources you have configured in Google Analytics web UI.
19 | }
20 | \details{
21 | You primarily need this to get the \code{customDataSourceId} for the uploads via \link{ga_custom_upload_file}
22 | }
23 | \seealso{
24 | Other custom datasource functions:
25 | \code{\link{ga_custom_upload}()},
26 | \code{\link{ga_custom_upload_delete}()},
27 | \code{\link{ga_custom_upload_file}()},
28 | \code{\link{ga_custom_upload_list}()}
29 | }
30 | \concept{custom datasource functions}
31 |
--------------------------------------------------------------------------------
/man/ga_custom_upload_list.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/custom_data_source.R
3 | \name{ga_custom_upload_list}
4 | \alias{ga_custom_upload_list}
5 | \title{List Custom Data Source Uploads}
6 | \usage{
7 | ga_custom_upload_list(accountId, webPropertyId, customDataSourceId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{customDataSourceId}{Custom data source Id}
15 | }
16 | \value{
17 | Custom Data Source Uploads List
18 | }
19 | \description{
20 | List Custom Data Source Uploads
21 | }
22 | \seealso{
23 | Other custom datasource functions:
24 | \code{\link{ga_custom_datasource}()},
25 | \code{\link{ga_custom_upload}()},
26 | \code{\link{ga_custom_upload_delete}()},
27 | \code{\link{ga_custom_upload_file}()}
28 | }
29 | \concept{custom datasource functions}
30 |
--------------------------------------------------------------------------------
/man/ga_custom_vars.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/custom_dims_mets.R
3 | \name{ga_custom_vars}
4 | \alias{ga_custom_vars}
5 | \title{Get Custom Dimensions or Metrics}
6 | \usage{
7 | ga_custom_vars(
8 | accountId,
9 | webPropertyId,
10 | type = c("customMetrics", "customDimensions"),
11 | customId
12 | )
13 | }
14 | \arguments{
15 | \item{accountId}{Account Id}
16 |
17 | \item{webPropertyId}{Web Property Id}
18 |
19 | \item{type}{A customMetric or customDimension}
20 |
21 | \item{customId}{The customMetricId or customDimensionId}
22 | }
23 | \value{
24 | Custom Metric or Dimension meta data
25 | }
26 | \description{
27 | Get Custom Dimensions or Metrics
28 | }
29 | \seealso{
30 | Other custom variable functions:
31 | \code{\link{ga_custom_vars_create}()},
32 | \code{\link{ga_custom_vars_list}()},
33 | \code{\link{ga_custom_vars_patch}()}
34 | }
35 | \concept{custom variable functions}
36 |
--------------------------------------------------------------------------------
/man/ga_experiment.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/experiments.R
3 | \name{ga_experiment}
4 | \alias{ga_experiment}
5 | \title{Experiments Meta data}
6 | \usage{
7 | ga_experiment(accountId, webPropertyId, profileId, experimentId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{profileId}{Profile Id}
15 |
16 | \item{experimentId}{Experiment Id}
17 | }
18 | \value{
19 | Experiment Meta Data
20 | }
21 | \description{
22 | Experiments Meta data
23 | }
24 | \seealso{
25 | Other managementAPI functions:
26 | \code{\link{ga_experiment_list}()},
27 | \code{\link{ga_filter_add}()},
28 | \code{\link{ga_filter_apply_to_view}()},
29 | \code{\link{ga_filter_update}()},
30 | \code{\link{ga_filter_update_filter_link}()},
31 | \code{\link{ga_segment_list}()}
32 | }
33 | \concept{managementAPI functions}
34 |
--------------------------------------------------------------------------------
/man/ga_experiment_list.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/experiments.R
3 | \name{ga_experiment_list}
4 | \alias{ga_experiment_list}
5 | \title{List Experiments}
6 | \usage{
7 | ga_experiment_list(accountId, webPropertyId, profileId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{profileId}{Profile Id}
15 | }
16 | \value{
17 | Experiments List
18 | }
19 | \description{
20 | List Experiments
21 | }
22 | \seealso{
23 | Other managementAPI functions:
24 | \code{\link{ga_experiment}()},
25 | \code{\link{ga_filter_add}()},
26 | \code{\link{ga_filter_apply_to_view}()},
27 | \code{\link{ga_filter_update}()},
28 | \code{\link{ga_filter_update_filter_link}()},
29 | \code{\link{ga_segment_list}()}
30 | }
31 | \concept{managementAPI functions}
32 |
--------------------------------------------------------------------------------
/man/ga_filter.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/filter_management.R
3 | \name{ga_filter}
4 | \alias{ga_filter}
5 | \title{Get specific filter for account}
6 | \usage{
7 | ga_filter(accountId, filterId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{filterId}{Filter Id}
13 | }
14 | \value{
15 | filter list
16 | }
17 | \description{
18 | Get specific filter for account
19 | }
20 | \seealso{
21 | Other filter management functions:
22 | \code{\link{ga_filter_delete}()},
23 | \code{\link{ga_filter_list}()},
24 | \code{\link{ga_filter_view}()},
25 | \code{\link{ga_filter_view_list}()}
26 | }
27 | \concept{filter management functions}
28 |
--------------------------------------------------------------------------------
/man/ga_filter_list.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/filter_management.R
3 | \name{ga_filter_list}
4 | \alias{ga_filter_list}
5 | \title{List filters for account}
6 | \usage{
7 | ga_filter_list(accountId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 | }
12 | \value{
13 | filter list
14 | }
15 | \description{
16 | List filters for account
17 | }
18 | \seealso{
19 | Other filter management functions:
20 | \code{\link{ga_filter}()},
21 | \code{\link{ga_filter_delete}()},
22 | \code{\link{ga_filter_view}()},
23 | \code{\link{ga_filter_view_list}()}
24 | }
25 | \concept{filter management functions}
26 |
--------------------------------------------------------------------------------
/man/ga_filter_view.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/filter_management.R
3 | \name{ga_filter_view}
4 | \alias{ga_filter_view}
5 | \title{Get specific filter for view (profile)}
6 | \usage{
7 | ga_filter_view(accountId, webPropertyId, viewId, linkId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{viewId}{Profile Id}
15 |
16 | \item{linkId}{Link Id}
17 | }
18 | \value{
19 | filter list
20 | }
21 | \description{
22 | Get specific filter for view (profile)
23 | }
24 | \seealso{
25 | Other filter management functions:
26 | \code{\link{ga_filter}()},
27 | \code{\link{ga_filter_delete}()},
28 | \code{\link{ga_filter_list}()},
29 | \code{\link{ga_filter_view_list}()}
30 | }
31 | \concept{filter management functions}
32 |
--------------------------------------------------------------------------------
/man/ga_filter_view_list.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/filter_management.R
3 | \name{ga_filter_view_list}
4 | \alias{ga_filter_view_list}
5 | \title{List filters for view (profile)}
6 | \usage{
7 | ga_filter_view_list(accountId, webPropertyId, viewId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{viewId}{Profile Id}
15 | }
16 | \value{
17 | filter list
18 | }
19 | \description{
20 | List filters for view (profile)
21 | }
22 | \seealso{
23 | Other filter management functions:
24 | \code{\link{ga_filter}()},
25 | \code{\link{ga_filter_delete}()},
26 | \code{\link{ga_filter_list}()},
27 | \code{\link{ga_filter_view}()}
28 | }
29 | \concept{filter management functions}
30 |
--------------------------------------------------------------------------------
/man/ga_goal.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/goal_management.R
3 | \name{ga_goal}
4 | \alias{ga_goal}
5 | \title{Get goal}
6 | \usage{
7 | ga_goal(accountId, webPropertyId, profileId, goalId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{profileId}{Profile Id}
15 |
16 | \item{goalId}{Goal Id}
17 | }
18 | \value{
19 | Goal meta data
20 | }
21 | \description{
22 | Get goal
23 | }
24 | \seealso{
25 | Other goal management functions:
26 | \code{\link{ga_goal_add}()},
27 | \code{\link{ga_goal_list}()},
28 | \code{\link{ga_goal_update}()}
29 | }
30 | \concept{goal management functions}
31 |
--------------------------------------------------------------------------------
/man/ga_goal_list.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/goal_management.R
3 | \name{ga_goal_list}
4 | \alias{ga_goal_list}
5 | \title{List goals}
6 | \usage{
7 | ga_goal_list(accountId, webPropertyId, profileId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{profileId}{Profile Id}
15 | }
16 | \value{
17 | Goal list
18 | }
19 | \description{
20 | List goals
21 | }
22 | \seealso{
23 | Other goal management functions:
24 | \code{\link{ga_goal}()},
25 | \code{\link{ga_goal_add}()},
26 | \code{\link{ga_goal_update}()}
27 | }
28 | \concept{goal management functions}
29 |
--------------------------------------------------------------------------------
/man/ga_model_example.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/models.R
3 | \name{ga_model_example}
4 | \alias{ga_model_example}
5 | \title{Load an example model}
6 | \usage{
7 | ga_model_example(name = "list")
8 | }
9 | \arguments{
10 | \item{name}{name of the model - set to "list" to show available files}
11 | }
12 | \description{
13 | Load an example model
14 | }
15 | \examples{
16 |
17 | # example .gamr files included with the package
18 | ga_model_example()
19 |
20 | # load one example
21 | ga_model_example("ga4-trend.gamr")
22 | }
23 | \seealso{
24 | Other GA modelling functions:
25 | \code{\link{ga_model}()},
26 | \code{\link{ga_model_edit}()},
27 | \code{\link{ga_model_load}()},
28 | \code{\link{ga_model_make}()},
29 | \code{\link{ga_model_save}()},
30 | \code{\link{ga_model_shiny}()},
31 | \code{\link{ga_model_shiny_load}()},
32 | \code{\link{ga_model_shiny_template}()},
33 | \code{\link{ga_model_write}()}
34 | }
35 | \concept{GA modelling functions}
36 |
--------------------------------------------------------------------------------
/man/ga_model_load.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/models.R
3 | \name{ga_model_load}
4 | \alias{ga_model_load}
5 | \title{Load a created model}
6 | \usage{
7 | ga_model_load(filename = "my-model.gamr")
8 | }
9 | \arguments{
10 | \item{filename}{name to load model from}
11 | }
12 | \description{
13 | Load a created model
14 | }
15 | \examples{
16 |
17 | # models used in ga_model_example() are here:
18 | location <- system.file("models","examples","decomp_ga.gamr",
19 | package = "googleAnalyticsR")
20 |
21 | ga_model_load(location)
22 | }
23 | \seealso{
24 | Other GA modelling functions:
25 | \code{\link{ga_model}()},
26 | \code{\link{ga_model_edit}()},
27 | \code{\link{ga_model_example}()},
28 | \code{\link{ga_model_make}()},
29 | \code{\link{ga_model_save}()},
30 | \code{\link{ga_model_shiny}()},
31 | \code{\link{ga_model_shiny_load}()},
32 | \code{\link{ga_model_shiny_template}()},
33 | \code{\link{ga_model_write}()}
34 | }
35 | \concept{GA modelling functions}
36 |
--------------------------------------------------------------------------------
/man/ga_model_refresh.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/models.R
3 | \name{ga_model_refresh}
4 | \alias{ga_model_refresh}
5 | \title{Refresh a model}
6 | \usage{
7 | ga_model_refresh(model)
8 | }
9 | \arguments{
10 | \item{model}{Model or file location of model .gamr file}
11 | }
12 | \description{
13 | Sometimes necessary if functions were created under differing package versions
14 | }
15 | \examples{
16 |
17 | \dontrun{
18 |
19 | decomp_ga <- ga_model_example("decomp_ga.gamr")
20 | decomp_ga <- ga_model_refresh(decomp_ga)
21 |
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/man/ga_model_shiny_load.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/model_shiny_templates.R
3 | \name{ga_model_shiny_load}
4 | \alias{ga_model_shiny_load}
5 | \title{Load one model into a Shiny template}
6 | \usage{
7 | ga_model_shiny_load(model_n, ...)
8 | }
9 | \arguments{
10 | \item{model_n}{The templated name of a model e.g. 'model1'}
11 |
12 | \item{...}{Other arguments passed from shiny server}
13 | }
14 | \description{
15 | Load one model into a Shiny template
16 | }
17 | \seealso{
18 | Other GA modelling functions:
19 | \code{\link{ga_model}()},
20 | \code{\link{ga_model_edit}()},
21 | \code{\link{ga_model_example}()},
22 | \code{\link{ga_model_load}()},
23 | \code{\link{ga_model_make}()},
24 | \code{\link{ga_model_save}()},
25 | \code{\link{ga_model_shiny}()},
26 | \code{\link{ga_model_shiny_template}()},
27 | \code{\link{ga_model_write}()}
28 | }
29 | \concept{GA modelling functions}
30 |
--------------------------------------------------------------------------------
/man/ga_model_shiny_template.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/model_shiny_templates.R
3 | \name{ga_model_shiny_template}
4 | \alias{ga_model_shiny_template}
5 | \title{Get a Shiny template file}
6 | \usage{
7 | ga_model_shiny_template(name = "list", read_lines = FALSE)
8 | }
9 | \arguments{
10 | \item{name}{the template name}
11 |
12 | \item{read_lines}{If TRUE will use \code{readLines()} to print out the template contents}
13 | }
14 | \description{
15 | Gets a pre-created template from the googleAnalyticsR samples
16 | }
17 | \seealso{
18 | Other GA modelling functions:
19 | \code{\link{ga_model}()},
20 | \code{\link{ga_model_edit}()},
21 | \code{\link{ga_model_example}()},
22 | \code{\link{ga_model_load}()},
23 | \code{\link{ga_model_make}()},
24 | \code{\link{ga_model_save}()},
25 | \code{\link{ga_model_shiny}()},
26 | \code{\link{ga_model_shiny_load}()},
27 | \code{\link{ga_model_write}()}
28 | }
29 | \concept{GA modelling functions}
30 |
--------------------------------------------------------------------------------
/man/ga_mp_cid.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/measurement_protocol.R
3 | \name{ga_mp_cid}
4 | \alias{ga_mp_cid}
5 | \title{Generate a random client_id}
6 | \usage{
7 | ga_mp_cid(seed = NULL)
8 | }
9 | \arguments{
10 | \item{seed}{If you set a seed, then the random number will be the same for each value}
11 | }
12 | \description{
13 | This has a random number plus a timestamp
14 | }
15 | \seealso{
16 | Other Measurement Protocol functions:
17 | \code{\link{ga_mp_event}()},
18 | \code{\link{ga_mp_event_item}()},
19 | \code{\link{ga_mp_send}()}
20 | }
21 | \concept{Measurement Protocol functions}
22 |
--------------------------------------------------------------------------------
/man/ga_remarketing_get.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/remarketingAudiences.R
3 | \name{ga_remarketing_get}
4 | \alias{ga_remarketing_get}
5 | \title{Get a remarketing audience}
6 | \usage{
7 | ga_remarketing_get(accountId, webPropertyId, remarketingAudienceId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{remarketingAudienceId}{The ID of the remarketing audience to retrieve.}
15 | }
16 | \value{
17 | Remarketing Audience object
18 | }
19 | \description{
20 | Get a remarketing audience
21 | }
22 | \seealso{
23 | \href{https://support.google.com/analytics/answer/2611268?hl=en}{About remarketing audiences}
24 |
25 | Other remarketing management functions:
26 | \code{\link{ga_remarketing_build}()},
27 | \code{\link{ga_remarketing_create}()},
28 | \code{\link{ga_remarketing_estimate}()},
29 | \code{\link{ga_remarketing_list}()}
30 | }
31 | \concept{remarketing management functions}
32 |
--------------------------------------------------------------------------------
/man/ga_remarketing_list.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/remarketingAudiences.R
3 | \name{ga_remarketing_list}
4 | \alias{ga_remarketing_list}
5 | \title{List remarketing audiences}
6 | \usage{
7 | ga_remarketing_list(accountId, webPropertyId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 | }
14 | \value{
15 | Remarketing audience list
16 | }
17 | \description{
18 | List remarketing audiences
19 | }
20 | \seealso{
21 | \href{https://support.google.com/analytics/answer/2611268?hl=en}{About remarketing audiences}
22 |
23 | Other remarketing management functions:
24 | \code{\link{ga_remarketing_build}()},
25 | \code{\link{ga_remarketing_create}()},
26 | \code{\link{ga_remarketing_estimate}()},
27 | \code{\link{ga_remarketing_get}()}
28 | }
29 | \concept{remarketing management functions}
30 |
--------------------------------------------------------------------------------
/man/ga_segment_list.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/segments.R
3 | \name{ga_segment_list}
4 | \alias{ga_segment_list}
5 | \title{Get segments user has access to}
6 | \usage{
7 | ga_segment_list()
8 | }
9 | \value{
10 | Segment list
11 | }
12 | \description{
13 | Get segments user has access to
14 | }
15 | \seealso{
16 | Other managementAPI functions:
17 | \code{\link{ga_experiment}()},
18 | \code{\link{ga_experiment_list}()},
19 | \code{\link{ga_filter_add}()},
20 | \code{\link{ga_filter_apply_to_view}()},
21 | \code{\link{ga_filter_update}()},
22 | \code{\link{ga_filter_update_filter_link}()}
23 | }
24 | \concept{managementAPI functions}
25 |
--------------------------------------------------------------------------------
/man/ga_unsampled.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/unsampled.R
3 | \name{ga_unsampled}
4 | \alias{ga_unsampled}
5 | \title{Get Unsampled Report Meta Data}
6 | \usage{
7 | ga_unsampled(accountId, webPropertyId, profileId, unsampledReportId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{profileId}{Profile Id}
15 |
16 | \item{unsampledReportId}{Unsampled Report Id}
17 | }
18 | \value{
19 | Unsampled Report Meta Data
20 | }
21 | \description{
22 | Get Unsampled Report Meta Data
23 | }
24 | \seealso{
25 | Other unsampled download functions:
26 | \code{\link{ga_unsampled_download}()},
27 | \code{\link{ga_unsampled_list}()}
28 | }
29 | \concept{unsampled download functions}
30 |
--------------------------------------------------------------------------------
/man/ga_view.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/views.R
3 | \name{ga_view}
4 | \alias{ga_view}
5 | \title{Get single View (Profile)}
6 | \usage{
7 | ga_view(accountId, webPropertyId, profileId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id}
13 |
14 | \item{profileId}{Profile (View) Id}
15 | }
16 | \value{
17 | A list of the Views meta-data.
18 | }
19 | \description{
20 | Gets meta-data for a particular View/Profile
21 | }
22 | \examples{
23 |
24 | \dontrun{
25 |
26 | library(googleAnalyticsR)
27 | ga_auth()
28 | ga_view(1058095, webPropertyId = "UA-1058095-1", profileId = 1855267)
29 | }
30 | }
31 | \seealso{
32 | Other account structure functions:
33 | \code{\link{ga_account_list}()},
34 | \code{\link{ga_accounts}()},
35 | \code{\link{ga_view_list}()},
36 | \code{\link{ga_webproperty}()},
37 | \code{\link{ga_webproperty_list}()}
38 | }
39 | \concept{account structure functions}
40 |
--------------------------------------------------------------------------------
/man/ga_webproperty.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/webprops.R
3 | \name{ga_webproperty}
4 | \alias{ga_webproperty}
5 | \title{Get a web property}
6 | \usage{
7 | ga_webproperty(accountId, webPropertyId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 |
12 | \item{webPropertyId}{Web Property Id e.g. \code{UA-12345-1}}
13 | }
14 | \value{
15 | webproperty
16 | }
17 | \description{
18 | Gets metadata for one particular web property
19 | }
20 | \examples{
21 |
22 | \dontrun{
23 | library(googleAnalyticsR)
24 | ga_auth()
25 | wp <- ga_webproperty(1058095, "UA-1058095-1")
26 | }
27 | }
28 | \seealso{
29 | Other account structure functions:
30 | \code{\link{ga_account_list}()},
31 | \code{\link{ga_accounts}()},
32 | \code{\link{ga_view}()},
33 | \code{\link{ga_view_list}()},
34 | \code{\link{ga_webproperty_list}()}
35 | }
36 | \concept{account structure functions}
37 |
--------------------------------------------------------------------------------
/man/ga_webproperty_list.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/webprops.R
3 | \name{ga_webproperty_list}
4 | \alias{ga_webproperty_list}
5 | \title{List web properties}
6 | \usage{
7 | ga_webproperty_list(accountId)
8 | }
9 | \arguments{
10 | \item{accountId}{Account Id}
11 | }
12 | \value{
13 | A \code{data.frame} of webproperty meta-data
14 | }
15 | \description{
16 | This gets the meta data for web properties associated with a particular accountId.
17 | If you want all information available to your user, use \link{ga_account_list} instead.
18 | }
19 | \examples{
20 |
21 | \dontrun{
22 | library(googleAnalyticsR)
23 | ga_auth()
24 | aa <- ga_accounts()
25 | wp <- ga_webproperty_list(aa$id[1])
26 | }
27 | }
28 | \seealso{
29 | Other account structure functions:
30 | \code{\link{ga_account_list}()},
31 | \code{\link{ga_accounts}()},
32 | \code{\link{ga_view}()},
33 | \code{\link{ga_view_list}()},
34 | \code{\link{ga_webproperty}()}
35 | }
36 | \concept{account structure functions}
37 |
--------------------------------------------------------------------------------
/man/met_fil_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{met_fil_ga4-class}
5 | \alias{met_fil_ga4-class}
6 | \title{\code{met_fil_ga4} class.}
7 | \description{
8 | Metric filter.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/met_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{met_ga4-class}
5 | \alias{met_ga4-class}
6 | \title{\code{met_ga4} class.}
7 | \description{
8 | Metric.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/meta.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/data.R
3 | \docType{data}
4 | \name{meta}
5 | \alias{meta}
6 | \title{Google Analytics API metadata}
7 | \format{
8 | A data frame containing metric and dimensions that
9 | you can query the Reporting API with.
10 | }
11 | \source{
12 | \url{https://ga-dev-tools.web.app/dimensions-metrics-explorer/}
13 | }
14 | \usage{
15 | meta
16 | }
17 | \description{
18 | This is a local copy of the data provided by \link{ga_meta}
19 | }
20 | \details{
21 | Running your own call will be more up to date, but this is here in case.
22 |
23 | It does not include the multi-channel or cohort variables.
24 | }
25 | \keyword{datasets}
26 |
--------------------------------------------------------------------------------
/man/meta4.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/data.R
3 | \docType{data}
4 | \name{meta4}
5 | \alias{meta4}
6 | \title{Google Analytics API metadata}
7 | \format{
8 | A data frame containing metric and dimensions that
9 | you can query the Data API with.
10 | }
11 | \source{
12 | \url{https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema}
13 | }
14 | \usage{
15 | meta4
16 | }
17 | \description{
18 | This is a local copy of the data provided by \code{ga_meta("data")}
19 | }
20 | \details{
21 | Running your own call will be more up to date, but this is here in case.
22 | }
23 | \keyword{datasets}
24 |
--------------------------------------------------------------------------------
/man/multi_selectUI.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/shiny-modules.R
3 | \name{multi_selectUI}
4 | \alias{multi_selectUI}
5 | \title{multi_select UI Shiny Module}
6 | \usage{
7 | multi_selectUI(id, label = "Metric", multiple = TRUE, width = NULL)
8 | }
9 | \arguments{
10 | \item{id}{Shiny id}
11 |
12 | \item{label}{label}
13 |
14 | \item{multiple}{multiple select}
15 |
16 | \item{width}{width of select}
17 | }
18 | \value{
19 | Shiny UI
20 | }
21 | \description{
22 | Shiny Module for use with \link{multi_select}
23 | }
24 | \details{
25 | Create a Google Analytics variable selector
26 | }
27 | \seealso{
28 | Other Shiny modules:
29 | \code{\link{accountPickerUI}()},
30 | \code{\link{authDropdown}()},
31 | \code{\link{authDropdownUI}()},
32 | \code{\link{metricDimensionSelectUI}()},
33 | \code{\link{multi_select}()}
34 | }
35 | \concept{Shiny modules}
36 |
--------------------------------------------------------------------------------
/man/orFiltersForSegment_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{orFiltersForSegment_ga4-class}
5 | \alias{orFiltersForSegment_ga4-class}
6 | \title{\code{orFiltersForSegment_ga4} class.}
7 | \description{
8 | Or-filter for segment.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/order_type.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \name{order_type}
4 | \alias{order_type}
5 | \title{Make an OrderType object}
6 | \usage{
7 | order_type(
8 | field,
9 | sort_order = c("ASCENDING", "DESCENDING"),
10 | orderType = c("VALUE", "DELTA", "SMART", "HISTOGRAM_BUCKET", "DIMENSION_AS_INTEGER")
11 | )
12 | }
13 | \arguments{
14 | \item{field}{One field to sort by}
15 |
16 | \item{sort_order}{ASCENDING or DESCENDING}
17 |
18 | \item{orderType}{Type of ordering}
19 | }
20 | \value{
21 | A order_type_ga4 object for use in GAv4 fetch
22 | }
23 | \description{
24 | Make an OrderType object
25 | }
26 | \details{
27 | For multiple order sorting, create separate OrderType objects to pass
28 | }
29 |
--------------------------------------------------------------------------------
/man/order_type_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{order_type_ga4-class}
5 | \alias{order_type_ga4-class}
6 | \title{\code{order_type_ga4} class.}
7 | \description{
8 | Order type.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/parse_ga_account_summary.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/parse_functions.R
3 | \name{parse_ga_account_summary}
4 | \alias{parse_ga_account_summary}
5 | \title{New parse GA account summary}
6 | \usage{
7 | parse_ga_account_summary(x)
8 | }
9 | \arguments{
10 | \item{x}{The account summary items}
11 | }
12 | \description{
13 | New parse GA account summary
14 | }
15 | \keyword{internal}
16 |
--------------------------------------------------------------------------------
/man/segmentBuilderUI.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/shiny-modules-segments.R
3 | \name{segmentBuilderUI}
4 | \alias{segmentBuilderUI}
5 | \title{Create a GAv4 Segment Builder}
6 | \usage{
7 | segmentBuilderUI(id)
8 | }
9 | \arguments{
10 | \item{id}{Shiny id}
11 | }
12 | \value{
13 | Shiny UI for use in app
14 | }
15 | \description{
16 | Shiny Module for use with \link{segmentBuilder}
17 | }
18 | \examples{
19 |
20 | \dontrun{
21 |
22 | library(shiny)
23 | library(googleAnalyticsR)
24 |
25 | ui <- shinyUI(fluidPage(
26 | segmentBuilderUI("test1")
27 | ))
28 |
29 |
30 | server <- shinyServer(function(input, output, session) {
31 |
32 | segment <- callModule(segmentBuilder, "test1")
33 |
34 | .. use segment() in further gav4 calls.
35 |
36 | })
37 |
38 |
39 | # Run the application
40 | shinyApp(ui = ui, server = server)
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/man/segmentDef_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{segmentDef_ga4-class}
5 | \alias{segmentDef_ga4-class}
6 | \title{\code{segmentDef_ga4} class.}
7 | \description{
8 | Segment definition.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/segmentFilterClause_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{segmentFilterClause_ga4-class}
5 | \alias{segmentFilterClause_ga4-class}
6 | \title{\code{segmentFilterClause_ga4} class.}
7 | \description{
8 | Segment filter clause.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/segmentFilter_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{segmentFilter_ga4-class}
5 | \alias{segmentFilter_ga4-class}
6 | \title{\code{segmentFilter_ga4} class.}
7 | \description{
8 | Segment filter.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/segmentSequenceStep_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{segmentSequenceStep_ga4-class}
5 | \alias{segmentSequenceStep_ga4-class}
6 | \title{\code{segmentSequenceStep_ga4} class.}
7 | \description{
8 | Segment sequence step.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/segment_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{segment_ga4-class}
5 | \alias{segment_ga4-class}
6 | \title{\code{segment_ga4} class.}
7 | \description{
8 | Segments list.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/sequenceSegment_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{sequenceSegment_ga4-class}
5 | \alias{sequenceSegment_ga4-class}
6 | \title{\code{sequenceSegment_ga4} class.}
7 | \description{
8 | Sequence segment.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/man/simpleSegment_ga4-class.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/ga_v4_objects.R
3 | \docType{class}
4 | \name{simpleSegment_ga4-class}
5 | \alias{simpleSegment_ga4-class}
6 | \title{\code{simpleSegment_ga4} class.}
7 | \description{
8 | Simple segment.
9 | }
10 | \keyword{internal}
11 |
--------------------------------------------------------------------------------
/pkgdown/favicon/apple-touch-icon-120x120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/pkgdown/favicon/apple-touch-icon-120x120.png
--------------------------------------------------------------------------------
/pkgdown/favicon/apple-touch-icon-152x152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/pkgdown/favicon/apple-touch-icon-152x152.png
--------------------------------------------------------------------------------
/pkgdown/favicon/apple-touch-icon-180x180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/pkgdown/favicon/apple-touch-icon-180x180.png
--------------------------------------------------------------------------------
/pkgdown/favicon/apple-touch-icon-60x60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/pkgdown/favicon/apple-touch-icon-60x60.png
--------------------------------------------------------------------------------
/pkgdown/favicon/apple-touch-icon-76x76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/pkgdown/favicon/apple-touch-icon-76x76.png
--------------------------------------------------------------------------------
/pkgdown/favicon/apple-touch-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/pkgdown/favicon/apple-touch-icon.png
--------------------------------------------------------------------------------
/pkgdown/favicon/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/pkgdown/favicon/favicon-16x16.png
--------------------------------------------------------------------------------
/pkgdown/favicon/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/pkgdown/favicon/favicon-32x32.png
--------------------------------------------------------------------------------
/pkgdown/favicon/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/pkgdown/favicon/favicon.ico
--------------------------------------------------------------------------------
/test:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tests/testthat.R:
--------------------------------------------------------------------------------
1 | library(testthat)
2 | library(googleAnalyticsR)
3 |
4 | test_check("googleAnalyticsR")
5 |
--------------------------------------------------------------------------------
/tests/testthat/_snaps/models.md:
--------------------------------------------------------------------------------
1 | # Run a model online
2 |
3 | Code
4 | model2$shiny_module$ui("test")
5 | Output
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tests/testthat/test.gamr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/tests/testthat/test.gamr
--------------------------------------------------------------------------------
/tests/testthat/test_adwords.R:
--------------------------------------------------------------------------------
1 | # source("setup.R")
2 | #
3 | # context("Adwords")
4 | #
5 | # test_that("Get AdWords Link meta data", {
6 | # skip_on_cran()
7 | #
8 | # adwords_list <- ga_adwords_list(accountId, webPropId)
9 | #
10 | # expect_s3_class(adwords_list, "data.frame")
11 | #
12 | # })
13 | #
14 | # test_that("Get information about specific GA Adwords link", {
15 | # skip_on_cran()
16 | # adwords_list <- ga_adwords_list(accountId, webPropId)
17 | # #assumes that default account from setup.R has existing link to Adwords account
18 | # ga_adwords_link <- ga_adwords(accountId, webPropId, webPropertyAdWordsLinkId = adwords_list[1,1])
19 | #
20 | # expect_equal(ga_adwords_link$kind, "analytics#entityAdWordsLink")
21 | #
22 | # })
--------------------------------------------------------------------------------
/tests/testthat/test_model_write.R:
--------------------------------------------------------------------------------
1 | # ga_model: A description
2 |
3 | # no libraries needed
4 |
5 | # fetch data
6 | data_f <-
7 | function (view_id, date_range = c(Sys.Date() - 300, Sys.Date()),
8 | ...)
9 | {
10 | google_analytics(view_id, date_range = date_range, metrics = "sessions",
11 | dimensions = "date", max = -1)
12 | }
13 |
14 | # model data
15 | model_f <-
16 | function (df, ...)
17 | {
18 | decompose(ts(df$sessions, frequency = 7))
19 | }
20 |
21 | # output data
22 | output_f <-
23 | function (df, ...)
24 | plot(df)
25 |
26 | # shiny input function
27 | uiInput <-
28 | structure(list(), names = character(0), class = c("shiny.tag.list",
29 | "list"))
30 |
31 | # use via ga_model_make()
32 |
--------------------------------------------------------------------------------
/vignettes/authDropdown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/authDropdown.png
--------------------------------------------------------------------------------
/vignettes/auth_token_markdown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/auth_token_markdown.png
--------------------------------------------------------------------------------
/vignettes/dimDropdown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/dimDropdown.png
--------------------------------------------------------------------------------
/vignettes/figure/unnamed-chunk-1-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/figure/unnamed-chunk-1-1.png
--------------------------------------------------------------------------------
/vignettes/figure/unnamed-chunk-16-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/figure/unnamed-chunk-16-1.png
--------------------------------------------------------------------------------
/vignettes/figure/unnamed-chunk-2-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/figure/unnamed-chunk-2-1.png
--------------------------------------------------------------------------------
/vignettes/figure/unnamed-chunk-6-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/figure/unnamed-chunk-6-1.png
--------------------------------------------------------------------------------
/vignettes/ga_model_shiny1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/ga_model_shiny1.png
--------------------------------------------------------------------------------
/vignettes/ga_model_shiny2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/ga_model_shiny2.png
--------------------------------------------------------------------------------
/vignettes/ga_model_shiny3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/ga_model_shiny3.png
--------------------------------------------------------------------------------
/vignettes/ga_model_shiny4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/ga_model_shiny4.png
--------------------------------------------------------------------------------
/vignettes/ga_model_shiny5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/ga_model_shiny5.png
--------------------------------------------------------------------------------
/vignettes/ga_model_shiny_basic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/ga_model_shiny_basic.png
--------------------------------------------------------------------------------
/vignettes/ga_model_shiny_gentellela.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/ga_model_shiny_gentellela.png
--------------------------------------------------------------------------------
/vignettes/gar_logo_1000.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/gar_logo_1000.png
--------------------------------------------------------------------------------
/vignettes/googleAnalyticsRsegmentCreator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/googleAnalyticsRsegmentCreator.gif
--------------------------------------------------------------------------------
/vignettes/googleAnalytics_deepdep.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/googleAnalytics_deepdep.png
--------------------------------------------------------------------------------
/vignettes/meta_data_screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/meta_data_screenshot.png
--------------------------------------------------------------------------------
/vignettes/metricDropdown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/metricDropdown.png
--------------------------------------------------------------------------------
/vignettes/model-shiny-module.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/model-shiny-module.png
--------------------------------------------------------------------------------
/vignettes/render_rmd.R:
--------------------------------------------------------------------------------
1 | library(knitr)
2 | library(webshot)
3 | webshot::install_phantomjs()
4 | # run this locally to create Rmd output with local API auth
5 | wd <- getwd()
6 | setwd("vignettes")
7 | knitr::knit("management.Rmd.raw", "management.Rmd")
8 | knitr::knit("models.Rmd.raw", "models.Rmd")
9 | setwd(wd)
--------------------------------------------------------------------------------
/vignettes/rstudio-oob.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/rstudio-oob.png
--------------------------------------------------------------------------------
/vignettes/segmentBuilder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/segmentBuilder.png
--------------------------------------------------------------------------------
/vignettes/test_ga_account_list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/test_ga_account_list.png
--------------------------------------------------------------------------------
/vignettes/v4demoappexample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/8-bit-sheep/googleAnalyticsR/322325570d92d01e0d22c740d0e7b5daddc8a9c0/vignettes/v4demoappexample.png
--------------------------------------------------------------------------------