Skip to content

[Bug]: Dashboard shows only data from default dataset, ignores custom analytics dataset configuration #248

@iBobik

Description

@iBobik

Bug Description

Dashboard hardcoded to query "metricsDataset" while tracking writes to custom dataset.

Empty dashboard despite successful data collection
Root Cause: Hardcoded dataset name in AnalyticsEngineAPI SQL queries
Fix Applied: Made dataset name configurable via CF_DATASET_NAME environment variable

Steps to Reproduce

  1. Install Counterscale with custom dataset name
  2. Report some sata
  3. See data are in the dataset
  4. Dashboard see no data

Expected Behavior

Dashboard will see data in a dataset

Actual Behavior

Dashboard is empty

Component

@counterscale/server

Environment

Cloudflare ;-)

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions