feat: Add analytics tracking for event and hackathon creation and publication#352
feat: Add analytics tracking for event and hackathon creation and publication#352codeunia-dev merged 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughThe pull request makes the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Service as Events/Hackathons/<br>Moderation Service
participant DB as Database
participant Analytics as AnalyticsService
Client->>Service: Create/Approve Request
Service->>DB: Insert/Update Entity
DB-->>Service: Success
rect rgb(200, 220, 240)
Note over Service,Analytics: Analytics Tracking (Non-blocking)
Service->>Analytics: incrementCompanyAnalytics(...)
alt Analytics Success
Analytics-->>Service: Tracked ✓
else Analytics Error
Analytics-->>Service: Error (logged, ignored)
end
end
Service-->>Client: Operation Complete
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This PR introduces analytics instrumentation across event and hackathon workflows to improve visibility into platform activity and enable richer reporting.
🔍 What’s Included
Added analytics hooks for:
Ensures all create/publish actions are captured consistently across the platform.
Centralized tracking logic to maintain cleaner and more maintainable code.
📈 Impact
🗂️ Files Updated
Authored by: @akshay0611
Summary by CodeRabbit