PageLens Analytics

io.pagelens由 pagelens.io 發布官方發布者v1.0.0更新於 Oct 27, 2026

Cookieless web analytics and AI Visibility: traffic, funnels, errors, and which AI bots read you.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取資料與分析

概覽

AI 產生的概覽

PageLens 網站分析遠端 MCP 伺服器:讓助理讀取流量、漏斗、錯誤、Web Vitals 與 AI 可見度資料,並可建立目標和標註。

可以做什麼
  • 列出可存取的網站與已儲存的分眾,取得主要指標及前期比較與時間序列
  • 依頁面、來源、管道、UTM、國家、裝置、瀏覽器、作業系統、語言、事件與外部連結細分流量
  • 查看即時訪客、近期工作階段、單一工作階段的瀏覽順序、自訂事件、JavaScript 錯誤與 Core Web Vitals
  • 分析瀏覽路徑、轉換漏斗、目標、同期群留存與已識別使用者
  • 讀取 Google Search Console 資料以及機器人和 AI 流量,包括 AI 爬蟲抓取與 AI 引薦造訪
  • 建立目標、在圖表上加入日期標註,並依 GDPR 要求刪除某位使用者的資料
適用情境
適合讓助理不必開啟分析後台就能回答網站流量、轉換、效能或 AI 可見度問題,或依分析結果草擬目標與標註。
執行需求
使用 app.pagelens.io 的遠端 streamable HTTP 端點,不需本機安裝。需要 PageLens API 金鑰,透過 Authorization 標頭以 Bearer 權杖傳送。寫入操作(create_goal、add_annotation、delete_user_data)需要寫入金鑰及成員或管理員權限。僅在已連結時才有 Google Search Console 資料。
安裝前請注意
API 金鑰是放在 Authorization 標頭中的機密,可存取其涵蓋的網站。create_goal 與 add_annotation 會變更分析設定,delete_user_data 會永久刪除某位使用者的事件、工作階段錄影與個人資料。分析資料(含使用者特徵與工作階段細節)會傳送給助理所用的模型供應商。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PageLens Analytics,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.pagelens%2Fpagelens/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "pagelens-analytics": {
      "type": "http",
      "url": "https://app.pagelens.io/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

工具

23

list_sites

List the websites this key can access, with visitors in the last 24 hours.

無需輸入參數。

list_segments

Saved segments (named filter sets such as "Paid traffic" or "Mobile in Germany") that can be applied to any report with segment_id.

輸入參數site_id必填

get_overview

Headline metrics (visitors, sessions, pageviews, pages per session, bounce rate, average session duration) for a period, compared with the previous period of the same length, plus a time series.

輸入參數tofromperiodfilterssite_id必填timezonesegment_idinclude_series

get_breakdown

Top values of one dimension (pages, entry/exit pages, referrers, channels, UTM tags, countries, cities, browsers, OS, devices, languages, custom events, outbound links) with visitors and sessions.

輸入參數tofromlimitperiodsearchfilterssite_id必填timezonedimension必填segment_id

get_pages

Per-page metrics: visitors, pageviews, entries, bounce rate and time on page.

輸入參數tofromlimitperiodfilterssite_id必填timezonesegment_id

get_realtime

Visitors online right now (last 5 minutes) and what they are viewing.

輸入參數site_id必填

list_sessions

Recent sessions with entry/exit page, pages viewed, duration, source, location and device.

輸入參數tofromkindlimitperiodfilterssite_id必填user_idtimezonesegment_id

get_session

Every pageview and event in one session, in order.

輸入參數site_id必填session_id必填

get_events

Custom events (sent with pagelens.track) and outbound clicks with counts and their properties.

輸入參數tofromlimitperiodfilterssite_id必填timezonesegment_id

get_errors

JavaScript errors grouped by message, with occurrences, affected sessions and pages.

輸入參數tofromlimitperiodfilterssite_id必填timezonesegment_id

get_web_vitals

Core Web Vitals from real visitors (LCP, INP, CLS, FCP, TTFB) at p50/p75/p90, overall and per page.

輸入參數tofromperiodfilterssite_id必填timezonesegment_id

get_journeys

Most common page-to-page paths visitors take.

輸入參數tofromlimitperiodfilterssite_id必填timezonesegment_id

run_funnel

Conversion funnel: how many sessions completed each step. Steps are pages (path, * wildcard allowed), custom event names, or a page scrolled at least `threshold` percent (type scroll). mode: ordered (default; other pages may come in between), strict (each step right after the previous one) or flexible (middle steps may be skipped). compare_previous adds the same funnel over the previous period.

輸入參數tofrommodesteps必填periodfilterssite_id必填timezonesegment_idcompare_previous

list_goals

Goals with conversions and conversion rate for the period, compared with the previous period.

輸入參數tofromperiodfilterssite_id必填timezonesegment_id

create_goal

Create a goal that counts sessions visiting a page, firing a custom event, or scrolling a page at least `threshold` percent (type scroll). Needs a write key and member access or higher.

輸入參數nametype必填value必填site_id必填threshold

add_annotation

Mark a date on the charts (a release, a campaign, an outage). Needs a write key and member access or higher.

輸入參數date必填text必填site_id必填

get_retention

Cohort retention of identified users (pagelens.identify): share of each daily or weekly cohort that came back in later periods.

輸入參數unitsite_id必填timezone

list_users

Users active in the period: identified users (with traits) and anonymous visitors, with sessions, pageviews and first source.

輸入參數tofromkindlimitperiodsearchfilterssite_id必填timezonesegment_id

get_user

Profile of one identified user (traits, first/last seen, totals) and their sessions.

輸入參數site_id必填user_id必填

get_search_console

Google Search Console data for the site (when connected): clicks, impressions, CTR and average position in Google Search, by query, page, country or device, plus a daily series. Data lags about 2 days.

輸入參數tofromlimitperiodsearchfilterssite_id必填timezonedimensionsegment_id

delete_user_data

GDPR erasure: permanently delete all events, session replays and the profile of one user on a site. Needs a write key and admin access.

輸入參數site_id必填user_id必填

get_bots_and_ai

Bot and AI traffic: AI crawlers (GPTBot, ClaudeBot…), AI assistants fetching pages, search engines, and human visits referred by AI assistants (ChatGPT, Perplexity, Claude…).

輸入參數tofromperiodfilterssite_id必填timezonesegment_id

get_ai_visibility

How the site shows up in AI assistants, per AI company (OpenAI/ChatGPT, Anthropic/Claude, Perplexity, Google/Gemini…) and per page: crawler reads, live fetches while answering a person, human visits sent back, purchases and revenue, robots.txt access, and plain-language findings.

輸入參數tofromperiodfilterssite_id必填timezonesegment_id

版本歷史

1
  1. v1.0.0最新Oct 12, 2026

評分

已滿足適用檢查項的 83%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。