Download the PHP package bezhansalleh/filament-google-analytics without Composer
On this page you can find all versions of the php package bezhansalleh/filament-google-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bezhansalleh/filament-google-analytics
More information about bezhansalleh/filament-google-analytics
Files in bezhansalleh/filament-google-analytics
Package filament-google-analytics
Short Description Google Analytics integration for FilamentPHP
License MIT
Homepage https://github.com/bezhansalleh/filament-google-analytics
Informations about the package filament-google-analytics
# Google Analytics (GA4) Google Analytics integration for [Filament Panels](https://filamentphp.com) with a set of widgets to display your analytics data in a beautiful way. #### Compatibility | Package Version | Filament Version | |----------------|---------------------| | [v1](https://github.com/bezhanSalleh/filament-google-analytics/tree/1.x) | [v2](https://filamentphp.com/docs/2.x/admin/installation) | | [v2](https://github.com/bezhanSalleh/filament-google-analytics/tree/2.x) | [v3](https://filamentphp.com/docs/3.x/panels/installation) | | v3 | [v4](https://filamentphp.com/docs/4.x/introduction/overview) | ## Upgrading from v2 to v3 If you are upgrading from version 2 to version 3, you will need to update the namespace anywhere you are using the plugin from `BezhanSalleh\FilamentGoogleAnalytics` to `BezhanSalleh\GoogleAnalytics`. # Installation You can install the package in to a Laravel app that uses [Filament](https://filamentphp.com) via composer: For now, follow the directions on [Spatie's Laravel Google Analytics package](https://github.com/spatie/laravel-analytics) for getting your credentials, then put them here: Also add this to the `.env` for your Filament PHP app: > [!IMPORTANT] > If you have not set up a custom theme and are using Filament Panels follow the instructions in the [Filament Docs](https://filamentphp.com/docs/4.x/styling/overview#creating-a-custom-theme) first. After setting up a custom theme add the following to your theme css file. # Usage All the widgets are enabled by default for you to use them in your filament pages/resources. In order to enable the widgets for the default filament dashboard, you need to set the `filament_dashboard` option to `true` in the config file `google-analytics.php` for each widget you want to enable. Publish the config files and set your settings: #### Available Widgets #### Custom Dashboard Though this plugin comes with a default dashboard, but sometimes you might want to change `navigationLabel` or `navigationGroup` or disable some `widgets` or any other options and given that the dashboard is a simple filament `page`; The easiest solution would be to disable the default dashboard and create a new `page`: then register the widgets you want from the **Available Widgets** list either in the `getHeaderWidgets()` or `getFooterWidgets()`: > [!NOTE] > In order to enable the widgets for the default filament dashboard, you need to set the `filament_dashboard` option to `true` in the config file `google-analytics.php` for each widget you want to enable. # Preview Widgets rendered in a dedicated dashboard (or any other page you create)   # Changelog Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. # Contributing If you want to contribute to this packages, you may want to test it in a real Filament project: - Fork this repository to your GitHub account. - Create a Filament app locally. - Clone your fork in your Filament app's root directory. - In the `/filament-google-analytics` directory, create a branch for your fix, e.g. `fix/error-message`. Install the packages in your app's `composer.json`: Now, run `composer update`. Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details. # Security Vulnerabilities Please review [our security policy](../../security/policy) on how to report security vulnerabilities. # Credits - [Bezhan Salleh](https://github.com/bezhanSalleh) - [Laravel Analytics](https://github.com/spatie/laravel-analytics) By [Spatie](https://github.com/spatie) - [Nova Google Analytics](https://github.com/tighten/nova-google-analytics) By [Tighten](https://github.com/tighten) - [All Contributors](../../contributors) # License The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
All versions of filament-google-analytics with dependencies
filament/filament Version ^4.0
filament/widgets Version ^4.0
illuminate/support Version ^11.28|^12.0
spatie/laravel-analytics Version ^5.3
spatie/laravel-package-tools Version ^1.9