New Analytics Plugin for Geeklog 2.2.2: Google Analytics 4 Integration
- Saturday, August 08 2026 @ 03:25 am EDT
- Contributed by: ::Ben
- Views: 237
A new Analytics plugin for Geeklog 2.2.2 is now available for testing. The plugin integrates Google Analytics 4 directly into Geeklog and provides both frontend visitor tracking and an analytics dashboard in the administration area.
Version 1.1.1 can be downloaded from GitHub:
https://github.com/Geeklog-Plugins/analytics/releases/tag/v1.1.1
Google Analytics 4 Integration
The Analytics plugin adds the Google Analytics 4 gtag.js tracking code automatically to your Geeklog website.
You only need to configure your GA4 Measurement ID in the Geeklog Configuration interface.
The plugin currently provides:
- Google Analytics 4 frontend tracking
- Automatic
gtag.jsintegration - GA4 Measurement ID configuration
- Google Analytics Data API integration
- An analytics dashboard inside the Geeklog administration area
- Traffic evolution for the last 30 days
- KPI summaries for yesterday, the last 7 days and the last 30 days
- Browser-side caching to reduce API requests and repeated OAuth authorization
Analytics Dashboard in Geeklog
In addition to the standard GA4 tracking code, the plugin can retrieve statistics from the Google Analytics Data API.
This makes it possible to view basic traffic information directly from the Geeklog administration area without opening Google Analytics every time.
To use the dashboard, you need:
- a GA4 Property ID;
- a Google Cloud project;
- the Google Analytics Data API enabled;
- a Google OAuth Client ID;
- access to the GA4 property with at least Viewer permission.
The Google account is authorized from the Analytics plugin administration page.
Requirements
The current release requires:
- Geeklog 2.2.2 or later
- PHP 7.4 or later
- a Google Analytics 4 property
- a Google Cloud project with the Google Analytics Data API enabled
Download Analytics 1.1.1
The plugin is available from the Geeklog-Plugins organization on GitHub:
https://github.com/Geeklog-Plugins/analytics/releases/tag/v1.1.1
The plugin archive can then be installed from the standard Geeklog plugin administration page.
Help Us Test the Plugin
This is a new plugin and feedback from the Geeklog community would be very useful.
If you are running Geeklog 2.2.2, please test the plugin on your development or test website and let us know how it works with your configuration.
In particular, feedback about the following areas would be helpful:
- plugin installation and configuration;
- GA4 tracking;
- Google OAuth authorization;
- Google Analytics Data API access;
- dashboard display;
- PHP compatibility;
- browser compatibility;
- errors, warnings or unexpected behavior.
If you find a problem, please open an issue on GitHub and include as much information as possible about your Geeklog and PHP environment:
https://github.com/Geeklog-Plugins/analytics/issues
Suggestions and contributions are also welcome.
Thanks to everyone willing to test the Analytics plugin and help improve it for the Geeklog community.