Skip to content

Conversation

massarin
Copy link
Contributor

No description provided.

larnsce and others added 25 commits July 22, 2025 16:11
Copy link

netlify bot commented Jul 30, 2025

Deploy Preview for luminous-treacle-bd685b ready!

Name Link
🔨 Latest commit d506852
🔍 Latest deploy log https://app.netlify.com/projects/luminous-treacle-bd685b/deploys/688a0f55065bbf0008091602
😎 Deploy Preview https://deploy-preview-120--luminous-treacle-bd685b.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@massarin massarin closed this Jul 30, 2025
@massarin massarin reopened this Jul 30, 2025
@massarin massarin closed this Jul 30, 2025
@massarin massarin reopened this Jul 30, 2025
@massarin massarin requested a review from larnsce July 30, 2025 12:26
@massarin
Copy link
Contributor Author

@larnsce I have written a general workflow for fetching data from the plausible API, generating and displaying badges on the README. The head of the workflow contains a configurable section,

  • a way to change URL
  • a way to select which badges to display
    see:
    name: Update Analytics Badges
    # =============================================================================
    # CONFIGURATION SECTION - Customize these variables for your site
    # =============================================================================
    env:
    # Site configuration
    SITE_ID: "openwashdata.org" # Your Plausible site ID
    TIME_PERIOD: "all" # Options: "all", "7d", "30d", "month", "year", etc.
    # Badge configuration (JSON array format)
    # Available metrics: pageviews, visitors, visits, bounce_rate, visit_duration, views_per_visit
    BADGES_CONFIG: |
    [
    {
    "metric": "pageviews",
    "label": "Total Views",
    "color": "2d0e2d",
    "style": "for-the-badge"
    },
    {
    "metric": "visitors",
    "label": "Unique Visitors",
    "color": "3B1A3B",
    "style": "for-the-badge"
    }
    ]

@larnsce
Copy link
Contributor

larnsce commented Jul 31, 2025

Great job! You can go ahead and merge. Following that, please write some documentation for including the badge in the package development process. Maybe as a function in `fairenough?

@massarin massarin merged commit 87ba616 into main Jul 31, 2025
4 checks passed
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.

3 participants