carloscsrm/googleanalytics
最新稳定版本:v2.0.0
Composer 安装命令:
composer require carloscsrm/googleanalytics
包简介
Use google analytics in Laravel 4.
README 文档
README
Plugin for Laravel 4 just to include Google Analytics script in your views
Installation
- Add
carloscsrm/googleanalyticstocomposer.json.
"carloscsrm/googleanalytics": "1.1.*"
-
Run composer update to pull down the latest version of Google Analytics package.
-
Now open up app/config/app.php and add the service provider to your providers array.
'providers' => array( 'Carloscsrm\Googleanalytics\GoogleanalyticsServiceProvider', ),
The Alias is automatically added by the system, you don't need add it manually. The alias is Googleanalytics
Configuration
Run php artisan config:publish carloscsrm/googleanalytics and modify the config file with your own Analytics ID.
Usage
For using this package you can add this code in your templates
{{Googleanalytics::render()}}
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-01