2017 © Pedro Peláez
 

symfony-bundle google-analytics-bundle

Simple way to insert google analytics tracker in your templates.

image

kpicaza/google-analytics-bundle

Simple way to insert google analytics tracker in your templates.

  • Wednesday, January 27, 2016
  • by kpicaza
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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') }}

The Versions

27/01 2016

dev-master

9999999-dev

Simple way to insert google analytics tracker in your templates.

  Sources   Download

MIT

The Requires