A simple tile for showing Plausible analytics within for your dashboard.
This tile can be used on the Laravel Dashboard.
You can install the package via composer:
composer require kilobyteno/laravel-dashboard-plausible-tile
Publish config for laravel-plausible:
php artisan vendor:publish --tag="plausible-config"
Open config/plausible.php
and add your Plausible API Key.
Then add this to config/dashboard.php
under the tile
key:
'plausible' => [
'refresh_interval_in_seconds' => 60,
'domains' => [
'kilobyte.no',
'example.com',
],
],
Under "schedule" in kernel.php
add:
$schedule->command(FetchDataFromPlausibleCommand::class)->everyMinute();
In your dashboard view you use the livewire:plausible-tile
component.
<x-dashboard>
<livewire:plausible-tile position="a1:a8" />
</x-dashboard>
If you want to customize the view used to render this tile, run this command:
php artisan vendor:publish --provider="Kilobyteno\PlausibleTile\PlausibleTileServiceProvider" --tag="dashboard-plausible-tile-views"
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.