datafast-analytics
بواسطة bennyqp
Web & Frontend Developmentموجز
Query DataFast website analytics and visitor data via the DataFast API for metrics, time series, realtime stats.
الوصف
ما الذي تفعله هذه المهارة
Queries the DataFast API to retrieve website analytics including visitor counts, time series, realtime data, geographic and device breakdowns, and individual visitor details. Also handles goal and payment record creation and deletion. Responses are formatted as tables with a short narrative summary.
Lets you query and manage DataFast analytics in plain language without opening the dashboard or writing API calls manually.
متى تستخدمها
- Checking yesterday's visitor and session counts
- Pulling a weekly time series of traffic by referrer
- Creating a conversion goal after a user completes checkout
- Deleting test payment records from a specific date range
مثال على سير العمل
User asks: Show me daily visitors for the past week, broken down by referrer
- 1
Read API key from ~/.config/datafast/api_key
- 2
Query GET /analytics/timeseries with fields=visitors, interval=day, and a 7-day date range
- 3
Query GET /analytics/referrers with the same date range
- 4
Merge results into a table with daily totals and top referrer sources
- 5
Write a short narrative with total visitors and the leading referrer
Table of daily visitor counts with referrer column, plus a two-sentence summary of total traffic and top source
المتطلبات
- DataFast API key (starts with df_, obtained from datafa.st)
التثبيت
clawhub install bennyqp/datafast-analyticsشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.