MouseTrackerBundle (mouseflow)
, (*1)
Installation
Add the benmacha/mousetracker
package to your require
section in the composer.json
file., (*2)
``` bash
$ composer require benmacha/mousetracker dev-master, (*3)
Add the MouseTrackerBundle to your application's kernel:
``` php
<?php
public function registerBundles()
{
$bundles = array(
// ...
new benmacha\mousetracker\TrackerBundle(),
// ...
);
...
}
Configure the Tracker
in your routing.yml
:, (*4)
``` yaml
mouse_tracker:
resource: "@TrackerBundle/Controller/"
type: annotation
prefix: /tracker, (*5)
Configure the `Tracker` in your `config.yml`:
``` yaml
imports:
- { resource: "@TrackerBundle/Resources/config/services.yml" }
twig:
globals:
mousetrackerService: @twig_tracker
assetic:
filters:
scssphp:
formatter: 'Leafo\ScssPhp\Formatter\Compressed'
jsqueeze: ~
Create Table:, (*6)
``` bash
$ php app/console doctrine:schema:update --force, (*7)
Dump js and css file
``` bash
$ php app/console assetic:dump
Usage
Configure the TrackerService
before the end of Body tag in your *.html.twig
page:, (*8)
``` twig, (*9)
{{ mousetrackerService.build() }}, (*10)
, (*11)
```, (*12)