Google Analytics Bundle

v0.1 2015-01-20 14:37 UTC

This package is not auto-updated.

Last update: 2024-07-17 14:01:36 UTC


Google Analytics bundle. See for betacie/google-analytics usages

You need to store all your events before render them.

// You could use tracker service in a controller or inject him in other services
// like a registration listener
    'category' => 'Registration',
    'action' => 'Confirmed',
    'label' => 'user-1',

Once you have stored all the events, the tracking code will be displayed with a Twig function.

// Twig template
{{ google_track() }}