Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPIKE: Determine the best way to get GA4 data onto a monthly-updated data.gov public dashboard #4726

Open
1 task
tdlowden opened this issue May 1, 2024 · 6 comments
Assignees
Labels
GA google analytics metrics Stats, metrics and data visualizations of catalog SEO Improvements

Comments

@tdlowden
Copy link
Member

tdlowden commented May 1, 2024

Purpose

We want to have a system to get data from our GA4 account into charts/viz on a public page, but we're not sure how to do that.

Given above uncertainty, conducting research/investigation is needed to provide factual knowledge on future steps.

2 weeks of effort has been allocated and once compete, findings will be demonstrated and specific future actions will be decided.

Acceptance Criteria

  • GIVEN usage data exists in Datagov GA4
    WHEN 2 weeks expires
    THEN viable options for populating a public dashboard will be presented
    AND a path forward will be chosen
    AND issues will be written to start that implementation

Background

https://docs.google.com/document/d/1tNQW2sRzwvew8IR8nz38teno_f-n3Y0OCQwBIHMT3mo/edit

https://developers.google.com/analytics/devguides/reporting/data/v1

Goals:

  • Monthly updates
  • Automation

Sketch

@tdlowden tdlowden added the GA google analytics label May 1, 2024
@jbrown-xentity jbrown-xentity added SEO Improvements metrics Stats, metrics and data visualizations of catalog labels May 2, 2024
@gujral-rei
Copy link

@robert-bryson , can you please add progress/update or any blockers to the ticket? Let's try to project a completion date. Is the end of this week a fair target?

@robert-bryson
Copy link
Contributor

Sure.

I spoke with Tim on Friday. I had a blocker around accessing the GA4 Data API via a credentials.json. I have access to one now and have a script sketched out. Will spend time on this today, but I think the approach of a Github action in the 11ty repo pulling the data via a python script should work well. We can either build the resulting CSV/JSON files into the 11ty build or post to S3 or any other option.

@robert-bryson
Copy link
Contributor

I was able to pull data from the Data API yesterday. I have started on proofing out a Github action to run it as a report and will continue on this today. In the near future I need to start thinking about how to display the reports, which reports are needed, and how to wire it all together. The charting examples shown on the data.gov front page would be a good place to start. @btylerburton is there a time over the next couple of days we can meet and discuss?

@btylerburton
Copy link
Contributor

sure thing @robert-bryson, feel free to find a time on my calendar or hit me up on slack.

@tdlowden
Copy link
Member Author

tdlowden commented Jun 3, 2024

Were you two able to sync up @btylerburton @robert-bryson ? Any updates?

@btylerburton
Copy link
Contributor

We had a quick sync on how the datagov site pulls data and preps it for charts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GA google analytics metrics Stats, metrics and data visualizations of catalog SEO Improvements
Projects
Status: 🏗 In Progress [8]
Development

No branches or pull requests

5 participants