| Package Data | |
|---|---|
| Maintainer Username: | mattstauffer |
| Maintainer Contact: | matt@tighten.co (Matt Stauffer) |
| Package Create Date: | 2018-08-24 |
| Package Last Update: | 2024-06-05 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-02 03:02:21 |
| Package Statistics | |
|---|---|
| Total Downloads: | 125,496 |
| Monthly Downloads: | 770 |
| Daily Downloads: | 17 |
| Total Stars: | 166 |
| Total Watchers: | 11 |
| Total Forks: | 29 |
| Total Open Issues: | 0 |

JUST GETTING STARTED.
Plans:
You can install the package in to a Laravel app that uses Nova via composer:
composer require tightenco/nova-google-analytics
Next up, you must register the card with Nova. This is typically done in the cards method of the NovaServiceProvider.
// in app/Providers/NovaServiceProvider.php
// ...
public function cards()
{
return [
// ...
new \Tightenco\NovaGoogleAnalytics\PageViewsMetric,
new \Tightenco\NovaGoogleAnalytics\VisitorsMetric,
new \Tightenco\NovaGoogleAnalytics\MostVisitedPagesCard,
];
}
For now, follow the directions on Spatie's Laravel Google Analytics package for getting your credentials, then put them here:
yourapp/storage/app/analytics/service-account-credentials.json
Also add this to the .env for your Nova app:
ANALYTICS_VIEW_ID=
If you discover any security related issues, please email matt@tighten.co instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.