analytics-event

Add trackable analytics events to a self-hosted system via /api/event and PostgreSQL.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/doleval013/Barak-web --skill analytics-event
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analytics-event
Source: https://github.com/doleval013/Barak-web/tree/main/.agent/skills/analytics-event
Command: npx skills add https://github.com/doleval013/Barak-web --skill analytics-event

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables teams to add new trackable analytics events to a self-hosted analytics system, ensuring consistent data collection and meaningful insights.

Core Features & Use Cases

  • Frontend event tracking: define and dispatch events from the UI to the backend via the /api/event endpoint.
  • Backend storage and aggregation: persisted in PostgreSQL events table for dashboards and reporting.
  • Admin visibility: events feed and aggregated stats in the admin dashboard.

Quick Start

Define a new event type in the frontend and wire a tracker call to POST to /api/event, then verify that the event is stored in PostgreSQL and appears in the Admin Dashboard.

Frequently Asked Questions about analytics-event

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track frontend analytics events and send them to a backend API?

To track frontend analytics events, you use a trackEvent helper that POSTs event data to the /api/event endpoint, which then writes the information to a PostgreSQL database for admin dashboard visibility.

What is the best way to store event tracking data in PostgreSQL for an admin dashboard?

Storing event tracking data in PostgreSQL requires a backend endpoint that receives POST requests from the frontend and writes the payload directly into an events table for aggregated dashboard reporting.

Do I need a PostgreSQL database to implement self-hosted event tracking?

Yes, you need a PostgreSQL database because the backend endpoint is designed to write incoming tracked events directly into a PostgreSQL events table for storage and dashboard aggregation.

How does a self-hosted analytics system handle event data from frontend to admin dashboard?

A self-hosted analytics system handles event data by having a frontend helper POST to a backend API, which stores the event in a PostgreSQL table and displays the aggregated stats in an admin dashboard.

Can I add new trackable analytics events to my existing admin dashboard?

Yes, you can add new trackable analytics events by defining new event types in the frontend, wiring a tracker call to POST to /api/event, and verifying their appearance in the admin dashboard.