GA4 Reports
Package docs status
Section titled “Package docs status”This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.
| Field | Value |
|---|---|
| Composer package | capell-app/ga4-reports |
| Package slug | ga4-reports |
| Product group | Capell Marketing & Growth |
| Tier | premium |
| Bundle | marketing-growth |
| Runtime contexts | admin, console |
| Capell version | ^1.0 |
| Catalogue role | extension |
| Release channel | Beta |
| Source repository | capell-app/packages |
| Source path | packages/ga4-reports |
| Docs source | packages/ga4-reports/docs |
| Manifest | capell.json |
What This Plugin Adds
Section titled “What This Plugin Adds”GA4 Reports is an Available, Schema-owning Capell package in the Capell Marketing & Growth product group. It ships as capell-app/ga4-reports and extends these surfaces: admin, console.
GA4 Reports synchronizes Google Analytics 4 metrics into local daily, page, and sync-run records for cached admin reporting.
Administrators configure the property and credentials, then review overview metrics, traffic trends, top pages, setup state, and sync freshness from the admin page and widgets.
Status details:
- Status: Available
- Tier: premium
- Bundle: marketing-growth
- Composer package:
capell-app/ga4-reports - Namespace:
Capell\GA4Reports - Theme key: not applicable
Why It Matters
Section titled “Why It Matters”For developers: A replaceable data-client contract and focused sync and report Actions keep external API calls off the admin render path.
For teams: Content and marketing teams can read recent traffic and page performance beside their CMS work and use sync history to judge whether the snapshot is current.
Screens And Workflow
Section titled “Screens And Workflow”Screenshot contract: docs/screenshots.json.


- GA4 Reports dashboard page (admin, required evidence).
- GA4 Reports setup status widget (admin, required evidence).
- GA4 Reports settings (admin, required evidence).
- GA4 Reports top pages detail (admin, supplementary evidence).
- GA4 Reports dashboard page with admin sidebar menu open (admin, supplementary evidence).
Technical Shape
Section titled “Technical Shape”Service providers
Section titled “Service providers”Capell\GA4Reports\Providers\GA4ReportsServiceProviderCapell\GA4Reports\Providers\AdminServiceProvider
Config files
Section titled “Config files”packages/ga4-reports/config/capell-ga4-reports.php
Migrations
Section titled “Migrations”packages/ga4-reports/database/migrations/2026_05_10_190852_01_create_ga4_reports_daily_metrics_table.phppackages/ga4-reports/database/migrations/2026_05_10_190852_02_create_ga4_reports_page_metrics_table.phppackages/ga4-reports/database/migrations/2026_05_10_190852_03_create_ga4_reports_sync_runs_table.php
Settings migrations
Section titled “Settings migrations”packages/ga4-reports/database/settings/2026_05_10_190853_01_create_ga4_reports_settings.phppackages/ga4-reports/database/settings/2026_10_02_000001_add_ga4_reports_sync_cron.php
Settings classes
Section titled “Settings classes”GA4ReportsSettingsGA4ReportsSettingsMigrationProvider
Models
Section titled “Models”GA4ReportsDailyMetricGA4ReportsPageMetricGA4ReportsSyncRun
Filament classes
Section titled “Filament classes”GA4ReportsPageGA4ReportsDashboardSettingsContributorGA4ReportsSettingsSchemaBuildsGA4ReportsDashboardWindowGA4ReportsOverviewStatsFilamentWidgetGA4ReportsSetupStatusFilamentWidgetGA4ReportsTopPagesFilamentWidgetGA4ReportsTopPagesTableFilamentWidgetGA4ReportsTrafficTrendFilamentWidget
Extension contracts
Section titled “Extension contracts”GA4ReportsDataClientInterface
Actions
Section titled “Actions”BuildGA4ReportsDigestActionBuildGA4ReportsOverviewActionBuildGA4ReportsTrendActionBuildGA4ReportsWindowActionBuildTopGA4ReportsPagesActionCheckGA4ReportsCredentialsPathActionExportGA4ReportsDigestCsvActionPersistGA4ReportsDailyMetricActionPersistGA4ReportsPageMetricActionPruneGA4ReportsSyncRunsActionRedactGA4ReportsSyncErrorMessageActionResolveGA4ReportsConfigActionSyncGA4ReportsMetricsAction
Data objects
Section titled “Data objects”GA4ReportsConfigDataGA4ReportsCredentialsStatusDataGA4ReportsDailyMetricDataGA4ReportsDigestDataGA4ReportsOverviewDataGA4ReportsPageMetricDataGA4ReportsSyncResultDataGA4ReportsTopPageDataGA4ReportsTrendPointDataGA4ReportsWindowData
Command signatures
Section titled “Command signatures”capell:ga4-reports-doctorcapell:ga4-reports-prune
Scheduled commands
Section titled “Scheduled commands”capell:ga4-reports-prune (daily; package registered)capell:ga4-reports-sync (package registered)
Console command classes
Section titled “Console command classes”GA4ReportsDoctorCommandPruneGA4ReportsSyncRunsCommandSyncGA4ReportsCommand
Manifest contributions
Section titled “Manifest contributions”admin-page: Capell\GA4Reports\Manifest\GA4ReportsAdminPageContributionconsole-command: Capell\GA4Reports\Manifest\GA4ReportsConsoleCommandsContributiondashboard-widget: Capell\GA4Reports\Manifest\GA4ReportsDashboardFilamentWidgetsContributionhealth-check: Capell\GA4Reports\Manifest\GA4ReportsHealthContributionmodel: Capell\GA4Reports\Manifest\GA4ReportsModelsContributionoverview-stat: Capell\GA4Reports\Manifest\GA4ReportsOverviewStatsContributionscheduled-job: Capell\GA4Reports\Manifest\GA4ReportsRetentionScheduleContributionscheduled-job: Capell\GA4Reports\Manifest\GA4ReportsScheduledSyncContributionsetting: Capell\GA4Reports\Manifest\GA4ReportsSettingsContribution
Health checks
Section titled “Health checks”Capell\GA4Reports\Health\Ga4ReportsHealthCheck
Blade views
Section titled “Blade views”packages/ga4-reports/resources/views/filament/pages/ga4-reports.blade.php
Cache tags
Section titled “Cache tags”ga4-reports
Data Model
Section titled “Data Model”- Required tables:
ga4_reports_sync_runs,ga4_reports_daily_metrics,ga4_reports_page_metrics. - Models:
GA4ReportsDailyMetric,GA4ReportsPageMetric,GA4ReportsSyncRun. - Migration files:
2026_05_10_190852_01_create_ga4_reports_daily_metrics_table.php,2026_05_10_190852_02_create_ga4_reports_page_metrics_table.php,2026_05_10_190852_03_create_ga4_reports_sync_runs_table.php. - Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: retention is scheduled through
capell:ga4-reports-prune(daily; registered by the package provider).
Install Impact
Section titled “Install Impact”- Required packages:
capell-app/admin,capell-app/core. - Admin navigation: declares
admin-page: GA4ReportsAdminPageContribution; each Filament page or resource controls its own navigation visibility. - Admin/editor extensions:
dashboard-widget: GA4ReportsDashboardFilamentWidgetsContribution,overview-stat: GA4ReportsOverviewStatsContribution. - Permissions:
View:GA4ReportsPage; Shield-generated page permissions forCapell\GA4Reports\Filament\Pages\GA4ReportsPage(names and grants depend on host Shield configuration). - Public routes: none declared.
- Database changes: package migrations are declared.
- Config:
config/capell-ga4-reports.php. - Settings:
Capell\GA4Reports\Settings\GA4ReportsSettings. - Queues or schedules: scheduled commands
capell:ga4-reports-prune (daily; package registered),capell:ga4-reports-sync (package registered). - Cache tags:
ga4-reports. - Commands:
capell:ga4-reports-doctor,capell:ga4-reports-prune.
Common Pitfalls
Section titled “Common Pitfalls”- Keep required Capell packages on compatible v4 releases:
capell-app/admin,capell-app/core. - Run migrations before opening package resources or public routes.
- Review package configuration before production-like verification:
config/capell-ga4-reports.php,Capell\GA4Reports\Settings\GA4ReportsSettings. - Keep the host Laravel scheduler running so package-registered schedules can execute:
capell:ga4-reports-prune (daily; package registered),capell:ga4-reports-sync (package registered). - Custom write integrations must preserve invalidation for
ga4-reportscache tags.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package health check reports a problem | Package configuration or runtime dependencies are not ready | Run php artisan capell:ga4-reports-doctor | Follow the reported checks, then rerun the doctor command |
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Admin screen or command fails on missing table | Package migrations have not run | Check the tables listed in Data Model | Run host migrations and rerun the focused package test |
| Background work does not run | Queue worker or declared schedule is not active | Check the jobs and scheduled commands listed in Technical Shape | Start the queue worker or host scheduler, then run the focused command or package test |
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/ga4-reports. - Open the package admin surface at
/admin/ga4-reportsand confirm GA4 Reports is available.