fhdsl / metricminer

R package that digs up data that matters from APIs, making it dashboard-ready
https://hutchdatascience.org/metricminer/
MIT License
1 stars 0 forks source link

Starting a template dashboard #15

Open cansavvy opened 9 months ago

cansavvy commented 9 months ago

Here's the steps I'm thinking to make this fast but allow us to adjust later.

  1. Make a dashboard that shows the Google Analytics data that you can get from this package first.
  2. Show plots and have a menu that allows people to choose what website they are looking at.
  3. You don't have to start from scratch https://github.com/fhdsl/dasl-analytics
  4. While developing keep in mind we will want to make this more flexible and modular for the other data types that I'm currently working on wrangling.
  5. We'll ultimately make this into a GitHub template so that people who use this pacakge have a website they can borrow that's ready to go.
cansavvy commented 9 months ago

Here's how you would get the google analytics data as is. #11 Is my work on it so far.

Authorize google using the hutchdasl@gmail.com account.

Checkout that branch from #11 and then you will be able to do:

authorize("google") # login with Hutchdasl@gmail.com
accounts <- get_ga_user() #FIND ITCR ACCOUNT NUMBER in this object
all_the_data <- all_ga_metrics(account_id = <ITCR ACCOUNT NUMBER>)

all_the_data has what you need. And purrr is going to be your friend.