Skip to content

[Feature]: Add link click analytics chart to the admin dashboard with daily/weekly trend visualization #342

Description

@prince-pokharna

Summary

The Conn admin dashboard currently shows total clicks and top-performing links as aggregate numbers. However, there is no time-series visualization — no chart showing how click volume changes day over day or week over week. For a creator platform positioning itself as a premium Linktree alternative, this is a core analytics gap. Creators need to understand not just how many clicks a link has received in total, but when those clicks happened and what trends look like over time.

Problem

  • The current analytics UI shows only aggregate totals (e.g., "Link X has 142 clicks") with no temporal breakdown.
  • There is no way to identify if a link's traffic is growing, declining, or spiking — information that is critical for creators evaluating content performance.
  • The POST /api/u/:username/links/:id/click handler records click events in Supabase, so timestamps are available at the data layer — they are just not being surfaced in the UI.
  • Linktree, Beacons, and other competing platforms all offer at minimum a 7-day or 30-day click trend chart; Conn's absence of this feature is a direct competitive disadvantage.

Impact

  • Creators cannot make informed decisions about which links to feature or promote without trend data.
  • The analytics section of the dashboard feels incomplete, reducing the perceived value of the platform and of paid subscription tiers.

Proposed Solution

  1. Backend: Add a new API endpoint GET /api/analytics/clicks-over-time?range=7d|30d that queries the Supabase link_clicks table (or equivalent), groups click events by day, and returns a structured array:
[
  { "date": "2026-07-17", "clicks": 34 },
  { "date": "2026-07-18", "clicks": 51 },
  ...
]
  1. Frontend: Render a line or bar chart using a lightweight library. Since the project uses vanilla JS, I will implement this using Chart.js (CDN import, no build step required), which integrates cleanly with the existing frontend architecture.

  2. UI controls: Add a toggle between 7-day and 30-day view directly above the chart.

  3. Responsive design: Ensure the chart renders correctly on mobile, consistent with the project's mobile-first approach.

I am happy to implement the full backend endpoint, frontend chart component, and responsive styling. Could you please assign this issue to me?

Labels: enhancement, feature request, analytics, help wanted, GSSoC 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions