thomaswelton / laravel-google-analytics by thomaswelton

1,206
8
3
Package Data
Maintainer Username: thomaswelton
Maintainer Contact: thomaswelton@me.com (ThomasWelton)
Package Create Date: 2013-07-30
Package Last Update: 2013-11-14
Language: PHP
License: Unknown
Last Refreshed: 2024-11-19 03:00:53
Package Statistics
Total Downloads: 1,206
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 8
Total Watchers: 3
Total Forks: 3
Total Open Issues: 1

Build Status Latest Stable Version Total Downloads Bitdeli Badge

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