Skip to content

Release: analytics, visitor counter, support ribbon, GitHub stars, and site URL fix#23

Merged
anurag629 merged 4 commits intoproductionfrom
dev
Mar 9, 2026
Merged

Release: analytics, visitor counter, support ribbon, GitHub stars, and site URL fix#23
anurag629 merged 4 commits intoproductionfrom
dev

Conversation

@anurag629
Copy link
Member

Release Summary

Merging devproduction with the following changes:

Features

  • Google Analytics (G-GLYL9J6QYX) — added to landing page layout and all Starlight docs pages
  • Visitor counter — Upstash Redis powered today/total counts displayed in landing page footer, session-based dedup to avoid double-counting
  • Support ribbon — diagonal corner tape (top-right) with Buy Me a Coffee and PayPal links in a click-to-expand dropdown
  • GitHub star count — live count fetched from GitHub API, shown in Hero "Star on GitHub" button and Header nav, cached in sessionStorage for 1 hour

Fixes

  • Site URL — corrected from chatcops.codercops.com to chat.codercops.com in astro.config.mjs
  • Inline widget auto-scrollpanel.show() no longer auto-focuses textarea in inline mode, preventing page from scrolling down to the chat demo on load

Docs

  • CONTRIBUTING.md — added website development section with env var setup instructions

Env vars required in Vercel

Variable Purpose
UPSTASH_REDIS_REST_URL Upstash Redis REST endpoint (visitor counter)
UPSTASH_REDIS_REST_TOKEN Upstash Redis auth token

These are optional — the visitor counter gracefully shows - without them.

PRs included

Test plan

  • Verify chat.codercops.com resolves correctly after deploy
  • GA events visible in Google Analytics dashboard
  • Visitor counter increments on first visit, reads on subsequent visits
  • Support ribbon renders in top-right corner on landing page
  • GitHub star count loads in Hero and Header
  • Inline chat demo does not cause auto-scroll
  • All Starlight docs pages load with GA script

anurag629 and others added 4 commits March 8, 2026 14:02
…ub stars

- Add Google Analytics (G-GLYL9J6QYX) to landing layout and Starlight docs
- Add Upstash Redis visitor counter (today/total) in footer with session dedup
- Add /api/visitors endpoint (GET/POST) with shared Upstash instance
- Add diagonal corner ribbon with Buy Me a Coffee and PayPal support links
- Add live GitHub star count to Hero button and Header nav
- Fix inline widget auto-scroll by skipping input focus in inline mode
feat: add analytics, visitor counter, support ribbon, and GitHub stars
@vercel
Copy link

vercel bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chatcops-website Ready Ready Preview, Comment Mar 9, 2026 4:37pm

Request Review

@anurag629 anurag629 merged commit 882a82e into production Mar 9, 2026
2 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.

1 participant