bezhanSalleh / filament-google-analytics

Google Analytics integration with Filamentphp (FilamentAdmin)
MIT License
167 stars 29 forks source link

For some reason the widgets do not render anything #63

Closed timlalev closed 3 weeks ago

timlalev commented 6 months ago

Filament 3. Installed package added json credential and published the config file and set the property id. Added the widgets to the filament dashboard page but there is absolutely nothing rendered on the page and no errors either. So not sure what is going on. Inside the panel I try to use the widgets like so: ->widgets([ Widgets\AccountWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\PageViewsWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\VisitorsWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\ActiveUsersOneDayWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\ActiveUsersSevenDayWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\ActiveUsersTwentyEightDayWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\SessionsWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\SessionsDurationWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\SessionsByCountryWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\SessionsByDeviceWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\MostVisitedPagesWidget::class, \BezhanSalleh\FilamentGoogleAnalytics\Widgets\TopReferrersListWidget::class, // Widgets\FilamentInfoWidget::class, ]) But I get an empty page:

Screenshot 2024-04-26 at 3 40 30 PM
aymanalhalali commented 5 months ago

Same issue, any updates?

ZayRTun commented 3 months ago

Hi, same issue here, using filament 3.

gieter-solutions commented 3 months ago

Change the filament_dashboard variable in the 'filament-google-analytics.php' config file to true for each of the widgets you want to show on your Filament dashboard. Currently your CanView trait is returning false.

jhoanborges commented 3 weeks ago

Change the filament_dashboard variable in the 'filament-google-analytics.php' config file to true for each of the widgets you want to show on your Filament dashboard. Currently your CanView trait is returning false.

worked. This should be in the docs.