Download the PHP package adamkiss/kirby-goat-counter without Composer
On this page you can find all versions of the php package adamkiss/kirby-goat-counter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adamkiss/kirby-goat-counter
More information about adamkiss/kirby-goat-counter
Files in adamkiss/kirby-goat-counter
Package kirby-goat-counter
Short Description Simple Goat Counter plugin for the Kirby CMS
License MIT
Informations about the package kirby-goat-counter
[!WARNING] ARCHIVED in Q1 2024
Since Goat counter still uses a token → cookie → redirect strategy, it's nearly impossible to reliably embed even a public stats page via
Kirby Goat Counter
Simple plugin providing goat counter iframe panel view to kirby panel and a simple frontend snippet.
Instalation
composer require adamkiss/kirby-goat-counter
or download from releases
How to use
- Set the "dashboard viewawble by" to "Logged in users or with secret token"
- Set
adamkiss.goat-counter.site-name
to your goat counter site name ([site-name].goatcounter.com
) - Set
adamkiss.goat-counter.token
to the token for the dashboard availability
config.php example
Frontend snippet to be placed in your HTML. Automatically disabled in the debug mode.
FAQ: It doesn't work, the panel shows "You need to log in" screen
This is the result of how Goat Counter uses the access token. It creates a cookie and then refreshes the UI. The result is, that if you have cross-site tracking prevention enabled, the [site].goatcounter.com will not see the "access-token" cookie and won't show the analytics. Create an exception for your domain to see the analytics.
License
MIT
Thanks
This plugin wouldn't happen without:
- Betten Deisler - for sponsoring the development of the Goat Counter plugin
- Florian Karsten - for the original code for the embeddable analytics in Kirby
- @garethworld - for the sponsorship of the original code for the embeddable analytics in Kirby