bezhanSalleh / filament-google-analytics

Google Analytics integration with Filamentphp (FilamentAdmin)
MIT License
170 stars 31 forks source link

widgets are not displaying on a custom dashboard despite following the README.md instructions #72

Closed devhoussam1998 closed 1 month ago

devhoussam1998 commented 4 months ago
Screenshot 2024-06-23 at 14 10 12

Dashboard.php

<?php

namespace App\Filament\Admin\Pages;

use Filament\Pages\Page;
use Illuminate\Contracts\Support\Htmlable;
use BezhanSalleh\FilamentGoogleAnalytics\Widgets;

class Dashboard extends Page
{
    protected static ?string $slug = 'dashboard';

    protected static string $view = 'filament.admin.pages.dashboard';

    protected function getHeaderWidgets(): array
    {
        return [
            Widgets\PageViewsWidget::class,
            Widgets\VisitorsWidget::class,
            Widgets\ActiveUsersOneDayWidget::class,
            Widgets\ActiveUsersSevenDayWidget::class,
            Widgets\ActiveUsersTwentyEightDayWidget::class,
            Widgets\SessionsWidget::class,
            Widgets\SessionsDurationWidget::class,
            Widgets\SessionsByCountryWidget::class,
            Widgets\SessionsByDeviceWidget::class,
            Widgets\MostVisitedPagesWidget::class,
            Widgets\TopReferrersListWidget::class,
        ];
    }
}
Svenjoelsson commented 2 months ago

Same for me

devhoussam1998 commented 2 months ago

yeah maybe something is wrong

bezhanSalleh commented 1 month ago

https://github.com/bezhanSalleh/filament-google-analytics/issues/63#issuecomment-2264830862