Download the PHP package tightenco/nova-google-analytics without Composer
On this page you can find all versions of the php package tightenco/nova-google-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tightenco/nova-google-analytics
More information about tightenco/nova-google-analytics
Files in tightenco/nova-google-analytics
Package nova-google-analytics
Short Description Google Analytics integration with Nova
License MIT
Homepage https://github.com/tightenco/nova-google-analytics
Informations about the package nova-google-analytics

Google Analytics Integration with Nova
Installation
You can install the package in to a Laravel app that uses Nova via composer:
For now, follow the directions on Spatie's Laravel Google Analytics package for getting your credentials, then put them here:
Also add this to the .env for your Nova app:
Upgrading to 4.0
Version 4.0 uses the new Google Analytics 4 Data API.
- Upgrades
spatie/laravel-analyticstov5.2- Drops support for PHP 8.0
- Drops support for Laravel 9
- Removes
FourteenDayActiveUsersMetricmetric which is not available in GA4
The required environment variable ANALYTICS_VIEW_ID has been renamed to ANALYTICS_PROPERTY_ID to match Google's usage.
Usage
You must register the cards you want to display with Nova. This is typically done in the cards method of the Main
dashboard.
Register the tool with Nova in the tools method of your NovaServiceProvider:
Features
View the Visitors and Pageview Metrics

View the Active Users Metrics

View the Sessions and Avg. Session Duration Metrics

View the Devices and Country Metrics by Session

View the lists of Most Visited Pages and Referrers

Testing
First, copy your .env.example file to a new file called .env.testing:
Make sure, in that file, to define the following variables to run all tests:
Add the .env.testing file in .gitignore so you can safely use the same analytics view ID to run the tests that you use for the card.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
Support us
Tighten is a web development firm that works in Laravel, Vue, and React. You can learn more about us on our web site
License
The MIT License (MIT). Please see License File for more information.