thomaswelton/laravel-google-analytics

此包最新版本(dev-master)的许可证信息不可用。

dev-master 2013-11-14 11:25 UTC

This package is auto-updated.

Last update: 2024-09-11 14:00:54 UTC


README

Build Status Latest Stable Version Total Downloads Bitdeli Badge

安装

更新你的 composer.json 文件,将此包作为依赖项包含进来。

"thomaswelton/laravel-google-analytics": "dev-master"

通过将 GoogleAnalytics 服务提供者添加到 app/config/app.php 文件中的 providers 数组中,来注册 GoogleAnalytics 服务提供者。

Thomaswelton\LaravelGoogleAnalytics\LaravelGoogleAnalyticsServiceProvider

通过将 GoogleAnalytics 门面添加到 app/config/app.php 文件中的 aliases 数组中,来别名 GoogleAnalytics 门面。

'aliases' => array(
	'GoogleAnalytics' => 'Thomaswelton\LaravelGoogleAnalytics\Facades\GoogleAnalytics'
)

配置

通过运行以下命令将配置文件复制到你的项目中:

php artisan config:publish thomaswelton/laravel-google-analytics

编辑配置文件,包括你的账户 ID。