ProjectPythia / projectpythia.github.io

https://projectpythia.org
Apache License 2.0
32 stars 17 forks source link

Automatic Metrics API #407

Closed jukent closed 3 months ago

jukent commented 3 months ago

Closes #319

Adds:

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

Here is the list of additional dimension and metric keys.

github-actions[bot] commented 3 months ago

👋 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: 782279ea2b174c13e6a67aa65f764effb8f66770 ✅ Deployment Preview URL: In Progress

jukent commented 3 months ago

Just for reference - the limit to API requests a day is 50,000. I think that is large enough that we don't have to be concerned. Just documenting that here for posterity.

After talking to @anissa111 and @brian-rose, I'm going to edit this action to be within the nightly build - editing it to update the metrics.md file and deploy the site. This way no commits and bot permissions are needed. Thank you for this elegant solution!

Relevant PR for adding deployment to nightly builds.

Some actions are in the cookbook-actions repo and others are within the portal. I'll have to take stock of the best place to add this. Since it is unique to the portal, I think it can live here in its own file, and have that file be called up as a job within the nightly build.


Added the deploy to nightly-build. Added automate-metrics to nightly-build, trigger-site-build, and publish-site, but not to trigger-preview.

jukent commented 3 months ago

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