calevans / staticforge-google-analytics
StaticForge Feature: GoogleAnalytics
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/calevans/staticforge-google-analytics
Requires
- php: ^8.4
Requires (Dev)
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2025-12-11 00:14:24 UTC
README
A StaticForge feature package.
Copyright 2025, Cal Evans
License: MIT
Installation
composer require calevans/staticforge-google-analytics php vendor/bin/staticforge feature:setup GoogleAnalytics
Configuration
Add the following to your siteconfig.yaml:
# Google Analytics Configuration google_analytics: enabled: true # tracking_id is set in .env as GOOGLE_ANALYTICS_ID
And add your tracking ID to your .env file:
GOOGLE_ANALYTICS_ID="UA-XXXXX-Y"