symfony-bundle google-analytics-bundle
Simple way to insert google analytics tracker in your templates.
kpicaza/google-analytics-bundle
Simple way to insert google analytics tracker in your templates.
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Google Analytics Bundle
Twig extension to insert Google Analytics script in your templates, (*1)
Installation:
composer require kpicaza/google-analytics-bundle=dev-master
Then activate in your app kernel, (*2)
// app/AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new Kpicaza\Bundle\GoogleanalyticsBundle\KpicazaGoogleanalyticsBundle(),
...
Usage:
Add the following helper function to your twig template:, (*3)
{{ ga_init('UA-XXXXXXXX-X') }}
dev-master
9999999-dev
Simple way to insert google analytics tracker in your templates.
Sources
Download
MIT
The Requires