Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For some reason the widgets do not render anything #63

Closed
timlalev opened this issue Apr 26, 2024 · 4 comments
Closed

For some reason the widgets do not render anything #63

timlalev opened this issue Apr 26, 2024 · 4 comments

Comments

@timlalev
Copy link

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
Copy link

Same issue, any updates?

@ZayRTun
Copy link

ZayRTun commented Jul 19, 2024

Hi, same issue here, using filament 3.

@gieter-solutions
Copy link

gieter-solutions commented Aug 2, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants