davefu/google-analytics
Composer 安装命令:
composer require davefu/google-analytics
包简介
Component for Google Analytics code
README 文档
README
This is Google Analytics component for Nette Framework.
Instalation
Include extension in config.neon and add Google Analytics key (if key is not defined, GA script will not be printed):
analytics:
key: "UA-XXXXXXXX-X"
extensions:
analytics: davefu\GoogleAnalytics\DI\AnalyticsExtension
Usage
You have to insert component factory to BasePresenter and use the component in @layout.latte:
/** @var \davefu\GoogleAnalytics\Components\GoogleAnalyticsFactory\GoogleAnalyticsFactory @inject */ protected $googleAnalyticsFactory; public function createComponentAnalytics() { return $this->googleAnalyticsFactory->create(); }
统计信息
- 总下载量: 91
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-09-19