StaticForge GoogleAnalytics
A StaticForge feature package.
Copyright 2025, Cal Evans
License: MIT
composer require calevans/staticforge-google-analytics
php vendor/bin/staticforge feature:setup GoogleAnalytics
Add the following to your siteconfig.yaml:
# Google Analytics Configuration
google_analytics:
enabled: true
# tracking_id is set in .env as GOOGLE_ANALYTICS_IDAnd add your tracking ID to your .env file:
GOOGLE_ANALYTICS_ID="UA-XXXXX-Y"