Skip to content

Automatic Metrics API #407

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

Closed
wants to merge 134 commits into from
Closed

Automatic Metrics API #407

wants to merge 134 commits into from

Conversation

jukent
Copy link
Contributor

@jukent jukent commented Mar 11, 2024

Closes #319

Adds:

  • necessary extensions to the conf file
  • a Python script that accesses the secrets for each GA4 property and writes to a json file if there are more than 100 new users
  • a Python script that writes the metrics.md file from this json (can easily be edited to display charts and things)
  • a GitHub action that runs this script weekly and pushes the changes
  • adds this metrics page to the about section of the footer-menu

There are new secrets for each GA4 properties ID and for the credentials file.

Here is the list of additional dimension and metric keys.

@jukent jukent requested a review from erogluorhan March 11, 2024 19:01
Copy link
Contributor

github-actions bot commented Mar 11, 2024

👋 Thanks for opening this PR! The Cookbook will be automatically built with GitHub Actions. To see the status of your deployment, click below.
🔍 Git commit SHA: 782279e
✅ Deployment Preview URL: In Progress

@jukent
Copy link
Contributor Author

jukent commented Mar 18, 2024

Closing this because with the curl grabbing from my main branch I have to remember to change things on the branch and on main. I'm going to make a new PR from main

@jukent jukent closed this Mar 18, 2024
github-actions bot pushed a commit that referenced this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate collection of various metrics
1 participant