← 返回
未分类 Key 中文

Plausible Analytics Agent

Track pageviews and custom events via the Plausible Events API, and query stats (top pages, top sources, countries, realtime visitors). Use when you need to...
通过 Plausible Events API 追踪页面浏览及自定义事件,并查询统计数据(热门页面、来源、国家、实时访客)。适用于需要...
kryzl19 kryzl19 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 380
下载
💾 0
安装
1
版本
#analytics#latest#plausible#privacy#tracking

概述

Plausible Analytics

Track events and query stats from Plausible Analytics (self-hosted or plausible.io).

Configuration

Set these environment variables before use:

# Your site domain (e.g. example.com)
export PLAUSIBLE_SITE_DOMAIN="example.com"

# Your Plausible API key (for stats endpoints)
export PLAUSIBLE_API_KEY="your-api-key"

# Plausible base URL (default: https://plausible.io for hosted)
# For self-hosted, set to your instance URL
export PLAUSIBLE_BASE_URL="https://plausible.io"

Track Pageview

bash skills/plausible-analytics/scripts/track.sh \
  --domain "$PLAUSIBLE_SITE_DOMAIN" \
  --url "https://example.com/blog/post-1" \
  --referrer "https://google.com"

Options:

  • --domain — Site domain (default: $PLAUSIBLE_SITE_DOMAIN)
  • --url — Page URL being viewed (required)
  • --referrer — Referring URL (optional)
  • --base-url — Plausible base URL (default: $PLAUSIBLE_BASE_URL)

Track Custom Event

bash skills/plausible-analytics/scripts/track.sh \
  --domain "$PLAUSIBLE_SITE_DOMAIN" \
  --event "Signup" \
  --props "{\"plan\":\"pro\",\"source\":\"newsletter\"}"

Options:

  • --domain — Site domain
  • --event — Custom event name (e.g. "Signup", "Button Click")
  • --props — JSON object with event properties (optional)
  • --base-url — Plausible base URL

Get Stats Summary

bash skills/plausible-analytics/scripts/stats.sh \
  --domain "$PLAUSIBLE_SITE_DOMAIN" \
  --period "30d" \
  --compare "previous_period"

Options:

  • --domain — Site domain
  • --period — Time period: 6mo, 12mo, day, 7d, 30d, month (default: 30d)
  • --compare — Compare to previous period: previous_period (optional)
  • --base-url — Plausible base URL (default: $PLAUSIBLE_BASE_URL)

Returns: pageviews, unique visitors, bounce rate, visit duration, total pageviews

Get Top Pages

bash skills/plausible-analytics/scripts/top-pages.sh \
  --domain "$PLAUSIBLE_SITE_DOMAIN" \
  --period "30d" \
  --limit 10

Options:

  • --domain — Site domain
  • --period — Time period (default: 30d)
  • --limit — Number of pages to return (default: 10)
  • --base-url — Plausible base URL

Get Realtime Visitors

bash skills/plausible-analytics/scripts/realtime.sh \
  --domain "$PLAUSIBLE_SITE_DOMAIN"

Options:

  • --domain — Site domain
  • --base-url — Plausible base URL

Returns: current visitors on site, pageviews in last 30 min, top pages currently viewed

Notes

  • The Events API (/api/event) is used without authentication for tracking
  • The Stats API (/api/v1/stats) requires PLAUSIBLE_API_KEY set in the request header
  • For self-hosted Plausible, set PLAUSIBLE_BASE_URL to your instance
  • All scripts output JSON or plain text depending on the endpoint

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 06:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 141,577
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 211 📥 69,565
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 273 📥 100,661