donfelice / analyticsbundle
Analytics Bundle 是一个 eZ Platform 2 的包,为管理界面中的 Google Analytics 提供基本视图。
dev-master
2018-01-20 08:40 UTC
Requires
- php: ^7.1
- ezsystems/ezplatform-admin-ui: ^1.0@dev
- ezsystems/ezplatform-admin-ui-assets: ^1.0@dev
- ezsystems/ezplatform-admin-ui-modules: ^1.0@dev
- ezsystems/ezpublish-kernel: ^7.0@dev
This package is not auto-updated.
Last update: 2024-09-20 21:01:58 UTC
README
eZ Platform 2 的 Analytics Bundle 在管理界面中为 Google Analytics 提供基本界面。此包使用 Google Embed API(见 https://ga-dev-tools.appspot.com/embed-api/)。
安装
使用 Composer
在您的网站根目录下运行以下命令以安装 Analytics Bundle
$ composer require donfelice/analyticsbundle
激活包
在 app/AppKernel.php 文件中激活包,通过将其添加到 registerBundles 方法中的 $bundles 数组中,与其他所需的包一起
public function registerBundles() { ... $bundles[] = new Donfelice\AnalyticsBundle\DonfeliceAnalyticsBundle(); return $bundles; }
Assetic 配置
您需要将其添加到 app/config/config.yml 中的 Assetic 配置中,包括 EzPlatformAdminUiBundle 和所有其他已配置的包
assetic:
bundles: [EzPlatformAdminUiBundle, DonfeliceAnalyticsBundle]
如果需要,重命名并更新 EventListener/MyAdminUIMenuListener.php.dist 文件。