thomaswelton / laravel-google-analytics
Installs: 1 206
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 3
Open Issues: 1
Requires
- php: >=5.3.0
- illuminate/support: 4.x
This package is auto-updated.
Last update: 2024-10-11 14:11:26 UTC
README
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