14/11
2013
Wallogit.com
2017 © Pedro Peláez
Update your composer.json file to include this package as a dependency, (*2)
"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., (*3)
Thomaswelton\LaravelGoogleAnalytics\LaravelGoogleAnalyticsServiceProvider
Alias the GoogleAnalytics facade by adding it to the aliases array in the app/config/app.php file., (*4)
'aliases' => array(
'GoogleAnalytics' => 'Thomaswelton\LaravelGoogleAnalytics\Facades\GoogleAnalytics'
)
Copy the config file into your project by running, (*5)
php artisan config:publish thomaswelton/laravel-google-analytics
Edit the config file to include your account ID, (*6)