Skip to content

GA4 Reports

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.

FieldValue
Composer packagecapell-app/ga4-reports
Package slugga4-reports
Product groupCapell Marketing & Growth
Tierpaid
Bundlemarketing-growth
Runtime contextsadmin, console
Capell version^1.0
Catalogue roleextension
Release channelBeta
Docs sourcepackages/ga4-reports/docs
Manifestcapell.json

Your Capell admin gets a Google Analytics page with overview figures, a traffic trend and a table of your most-viewed pages. You can answer a colleague without opening another site. It reads from a Google Analytics 4 property that already collects data from your site.

It also needs a key file for a Google service account with read access. Your developer or host saves that file on the server, and you enter its path in settings. Refreshing the figures needs background jobs running on your server.

Super Admins see the page and can give other administrators access. The same cards can sit on the main dashboard, and neither shows on your public pages. The overview says how many days of the period have been imported so far.

The figures are a copy of finished days up to yesterday, refreshed overnight by default. A button on the page fetches the latest on request, and a note shows when the last refresh finished and what went wrong if one failed. The overview then gives you page views, sessions and engagement for this week.

  • Price and availability: Check current availability and price on the Capell Marketplace listing.
  • Licence: Check the licence terms on the Capell Marketplace listing.
  • Requires: PHP ^8.4, capell-app/admin ^1.0.78, capell-app/core ^1.0.75, lorisleiva/laravel-actions ^2.8, spatie/laravel-data ^4.5, spatie/laravel-package-tools ^1.14.1.
  • Install: composer require capell-app/ga4-reports.
  1. Install the package: composer require capell-app/ga4-reports.
  2. Open the package admin surface at /admin/ga4-reports and confirm GA4 Reports is available.

A replaceable data-client contract and focused sync and report Actions keep external API calls off the admin render path.

  • Configuration files: config/capell-ga4-reports.php.
  • Admin settings: Capell\GA4Reports\Settings\GA4ReportsSettings.
  • Commands: php artisan capell:ga4-reports-doctor, php artisan capell:ga4-reports-prune, php artisan capell:ga4-reports-sync, php artisan ga4-reports:sync.
  • Install the required Capell packages at the versions in composer.json: capell-app/admin ^1.0.78, capell-app/core ^1.0.75.
  • Run migrations before opening package resources or public routes.
  • 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-reports cache tags.

GA4 Reports dashboard page

GA4 Reports setup status widget

  • GA4 Reports dashboard page (admin).
  • GA4 Reports setup status widget (admin).
  • GA4 Reports settings (admin).
  • GA4 Reports top pages detail (admin).
  • GA4 Reports dashboard page with admin sidebar menu open (admin).
  • 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 for Capell\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, capell:ga4-reports-sync, ga4-reports:sync.
SymptomLikely causeCheckFix
Package health check reports a problemPackage configuration or runtime dependencies are not readyRun php artisan capell:ga4-reports-doctorFollow the reported checks, then rerun the doctor command
Package surface is missing after installProvider or manifest is not loadedConfirm capell.json, package composer.json, and provider registrationReinstall the package, refresh Composer autoload, and clear host caches
Admin screen or command fails on missing tablePackage migrations have not runCheck the tables listed in Data ModelRun host migrations and rerun the focused package test
Background work does not runQueue worker or declared schedule is not activeCheck the jobs and scheduled commands listed in Technical ShapeStart the queue worker or host scheduler, then run the focused command or package test

No manual steps between minor versions.

Read CHANGELOG.md before upgrading.