donfelice/analyticsbundle

The Analytics Bundle is an eZ Platform 2 bundle providing a basic views for Google Analytics in the admin interface.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:ezplatform-bundle

dev-master 2018-01-20 08:40 UTC

This package is not auto-updated.

Last update: 2024-04-19 19:03:15 UTC


README

The Analytics Bundle for eZ Platform 2 provides a basic interface for Google Analytics in the admin. The bundle uses the Google Embed API (See https://ga-dev-tools.appspot.com/embed-api/).

Installation

Use Composer

Run the following from your website root folder to install Analytics Bundle:

$ composer require donfelice/analyticsbundle

Activate the bundle

Activate the bundle in app/AppKernel.php file by adding it to the $bundles array in registerBundles method, together with other required bundles:

public function registerBundles()
{
    ...
    $bundles[] = new Donfelice\AnalyticsBundle\DonfeliceAnalyticsBundle();

    return $bundles;
}

Assetic configuration

You need to add it to Assetic configuration in app/config/config.yml, together with EzPlatformAdminUiBundle and all other bundles already configured there:

assetic:
    bundles: [EzPlatformAdminUiBundle, DonfeliceAnalyticsBundle]

Rename and update if needed the EventListener/MyAdminUIMenuListener.php.dist file.