porter-ga4-dashboard
Replicate a polished, hosted Google Analytics 4 dashboard with FULLY MASKED (synthetic) data using the PorterMetrics MCP — a 4-page report (Conversions…
от portermetricsample★ 22 звезды на GitHub
Установить porter-ga4-dashboard в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Porter GA4 dashboard — masked sample
This skill produces a specific, polished Google Analytics 4 dashboard as a
hosted Porter report (report.portermetrics.com/<id>) whose data is entirely
synthetic and masked — it shows a fictional brand, Acme Analytics /
acmeanalytics.io, and never queries any real account. It has 4 pages:
- Conversions — Key events / rate / Sessions / Event count scorecards, a key-
events trend with a metric switcher, a "by event name" table (only
generate_leadsign_upconvert), a "by channel group" bar chart, and a "by source / medium" table.
- Audiences — Total/New/Active users + engagement KPIs; Geography (country bars + top cities), Demographics (age/gender/language/interests), Technology (device/browser/OS + new-vs-returning), and an audiences table.
- Content — Views / users / engagement KPIs, a views trend, a searchable "Pages and screens" table, landing pages, page titles, and site-search terms.
- Time matrix — a "key metrics by period" breakdown matrix (Day/Week/Month/Quarter toggle, per-row blue heat) and a day-of-week × hour sessions heatmap.
Why it is safe to share. The report is self-contained: every chart is answered
locally by a synthetic-data engine (lib/mask.ts) and NO query ever reaches the data
plane. It declares no connectors and no accounts (connectors_used: [],
account_ids: []). That is what makes both paths below produce masked output that can
be made public with zero risk of leaking a real property.
Choose a path
Path A — Clone the masked reference (fast, works EVERYWHERE). One MCP call, no build tools, no Node, works in plain chat. Because the reference is self-contained, the clone is byte-identical AND stays masked — there is nothing to re-point and nothing to leak. This is the path for "give me the masked GA4 dashboard".
Path B — Build it from source (needs Node + a shell). Use when the user wants to
change the fictional data, the brand, or the structure. This skill bundles the complete
masked project under assets/project/.
Prerequisite for both: the PorterMetrics MCP connected. (No GA4 account is needed — the report queries nothing.)
No Porter MCP at all? There is also a chat-only route that reproduces the same look as a self-contained interactive artifact with fictional data — see
references/artifact-prompt.md. Use it when the user is in plain Claude Chat with no Porter connector and just wants the visual.
Path A — Clone (preferred)
Clone the masked reference verbatim (no accounts — it is self-contained):
duplicate_report(report_id="https://report.portermetrics.com/730c1424-eac3-49c5-a2d0-074ffa139b51")report_idalso accepts the bare id730c1424-eac3-49c5-a2d0-074ffa139b51. This reference is public by link, so any user can read and clone it. Do not passaccounts_used/account_map— the report has no accounts, so re-pointing is neither needed nor wanted; passing accounts just adds connectors the charts never use.Read the response:
diagnostics.error_countmust be 0 andchart_count0 (the report queries nothing). The copy is owned by the user, named "Copy of Google Analytics 4 — Sample (masked)", and starts private.Hand over the returned
urlplus the no-loginpreview_url. The dashboard already shows the Acme Analytics masked data — there is nothing to fill in.If a non-owner clone is ever rejected for "missing accounts": it means the platform still demanded an allowlist for a report you don't own. The report needs none, so fall back to Path B (rebuild from the bundled source and
create_reportwith noaccounts_used). In practice the verbatim clone of this self-contained report succeeds.
Making the copy public (the Share button, or share_report(method="link")) is the user's
call — but since the data is masked, it is safe to do on request.
Path B — Build from source
The complete masked project is bundled at assets/project/ — you do not download or
reconcile against the create_report starter template. It already contains the masking
engine and the masked brand strings.
1. Copy the project out and install
cp -R <skill>/assets/project <work-dir>/ga4-masked && cd <work-dir>/ga4-masked
npm install
npx playwright install chromium # first time only
2. (Optional) re-brand or re-shape the fiction
Everything data-related lives in lib/mask.ts — one deterministic daily universe plus
per-dimension share catalogs (countries, channels, event names, pages, …). The brand
strings live in lib/ga4.ts (ACCOUNTS, PROPERTY_LABEL) and pages/index.tsx
(header subline + footer). To change the fictional company, edit those. Keep the data
deterministic and internally consistent (see references/ga4-masking-technique.md) —
that is what makes KPIs reconcile across pages.
Do NOT re-introduce a live qu
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- README.md
- assets/project/.gitignore
- assets/project/README.md
- assets/project/components/charts.tsx
- assets/project/components/controls.tsx
- assets/project/components/gviz.tsx
- assets/project/components/ui.tsx
- assets/project/components/views/audiences.tsx
- assets/project/components/views/content.tsx
- assets/project/components/views/conversions.tsx
- assets/project/components/views/timematrix.tsx
- assets/project/lib/ga4.ts
- assets/project/lib/mask.ts
- assets/project/lib/porter.ts
- assets/project/lib/useReport.ts
- assets/project/next.config.js
- assets/project/package-lock.json
- assets/project/package.json
- assets/project/pages/_app.tsx
- assets/project/pages/_document.tsx
- assets/project/pages/index.tsx
- assets/project/public/fonts/roboto-400.woff2
- assets/project/public/fonts/roboto-500.woff2
- assets/project/public/fonts/roboto-700.woff2
- assets/project/scripts/audit.mjs
- assets/project/scripts/dev.mjs
- assets/project/scripts/package-template.mjs
- assets/project/scripts/verify-relative-paths.mjs
- assets/project/simulator/refresh-schemas.mjs
- assets/project/simulator/schemas/facebook-ads.json
- assets/project/simulator/schemas/google-ads.json
- assets/project/simulator/schemas/google-analytics-4.json
- assets/project/simulator/schemas/google-search-console.json
- assets/project/simulator/server.mjs
- assets/project/styles/globals.css
- assets/project/tsconfig.json
- porter-ga4-dashboard.skill
- references/artifact-prompt.md
- references/ga4-masking-technique.md
FAQ
Что делает скилл porter-ga4-dashboard?
Replicate a polished, hosted Google Analytics 4 dashboard with FULLY MASKED (synthetic) data using the PorterMetrics MCP — a 4-page report (Conversions, Audiences, Content, Time matrix) that ships as a live shareable URL and shows a fictional "Acme Analytics" brand, never any real property. Use this skill WHENEVER the user wants a GA4 / Google Analytics analytics dashboard, report, or "insights" page built with Porter that must NOT expose real data — for demos, videos, screenshots, sales collateral, or templates — even if they only say "make me a masked GA4 dashboard", "a sample Google Analytics report", "replicate this GA4 dashboard with fake data", or hand you the reference report URL to reproduce. It offers a one-call CLONE path that works anywhere (including plain chat, no build tools) plus a full build path, so every run produces a near-identical masked dashboard. Do NOT hand-roll a masked GA4 report from scratch when this skill applies.
Как установить скилл porter-ga4-dashboard?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл porter-ga4-dashboard запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…