thomaswelton/laravel-google-analytics
1,217
8
| Install | |
|---|---|
composer require thomaswelton/laravel-google-analytics |
|
| PHP: | >=5.3.0 |
| Last Updated: | Nov 14, 2013 |
| Links: | GitHub · Packagist |
Maintainer: thomaswelton
Installation
Update your composer.json file to include this package as a dependency
"thomaswelton/laravel-google-analytics": "dev-master"
Register the GoogleAnalytics service provider by adding it to the providers array in the app/config/app.php file.
Thomaswelton\LaravelGoogleAnalytics\LaravelGoogleAnalyticsServiceProvider
Alias the GoogleAnalytics facade by adding it to the aliases array in the app/config/app.php file.
'aliases' => array(
'GoogleAnalytics' => 'Thomaswelton\LaravelGoogleAnalytics\Facades\GoogleAnalytics'
)
Configuration
Copy the config file into your project by running
php artisan config:publish thomaswelton/laravel-google-analytics
Edit the config file to include your account ID



