betacie / ganalytics-bundle
Google Analytics Bundle
Installs: 4 702
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
pkg:composer/betacie/ganalytics-bundle
Requires
- betacie/google-analytics: ~0.1
This package is not auto-updated.
Last update: 2025-09-24 19:47:58 UTC
README
Google Analytics bundle. See https://github.com/betacie/google-analytics 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 $this->container->get('betacie_google.event_tracker')->trackEvent([ '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() }}