the-3labs-team / nova-google-analytics-cards
Google Analytics integration with Nova Metrics
Installs: 2 545
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 3
Requires
- php: ^8.1|^8.2|^8.3
- laravel/framework: ^10.0|^11.0
- spatie/laravel-analytics: ^5.0.3
Requires (Dev)
- laravel/nova: ^4.0
- laravel/pint: ^1.10
This package is auto-updated.
Last update: 2024-11-12 22:10:59 UTC
README
Nova Google Analytics Cards
Stay on top of your website's performance with the Google Analytics Insights Package for Laravel Nova. This powerful integration empowers you to seamlessly integrate Google Analytics data directly into your Nova dashboard, offering you a comprehensive and real-time overview of your website's key metrics.
Requirements
- php ^8.1|^8.2|^8.3
- laravel/framework ^10.0|^11.0
Version Compatibility
Installation
You can install the package via composer:
composer require the-3labs-team/nova-google-analytics-cards
You can publish the config file with:
php artisan vendor:publish
and choose: The3LabsTeam\NovaGoogleAnalyticsCards\NovaGoogleAnalyticsCardsServiceProvider
.
You can publish the Google Analytics config file with:
php artisan vendor:publish
and select: Spatie\Analytics\AnalyticsServiceProvider
.
Note: this package uses Laravel Analytics, so you need to configure it
in your config/analytics.php
file.
The config file is documented, so choose the option that best suits your needs.
Usage
use The3LabsTeam\NovaGoogleAnalyticsCards\Counter\ActiveUsersCounter;use The3LabsTeam\NovaGoogleAnalyticsCards\Counter\NewUsersCounter;use The3LabsTeam\NovaGoogleAnalyticsCards\Counter\PageViewsCounter;use The3LabsTeam\NovaGoogleAnalyticsCards\LineChart\PageViewLineChart; ... (new ActiveUsersCounter()) (new NewUsersCounter()) (new PageViewsCounter()) (new PageViewLineChart())
You can also override the name of cards like this:
use The3LabsTeam\NovaGoogleAnalyticsCards\Counter\ActiveUsersCounter; ... (new ActiveUsersCounter(name: 'The name of the card (string)'))