2017 © Pedro Peláez
 

symfony-bundle google-analytics-bundle

Google Analytics Bundle for Symfony

image

samuelmc/google-analytics-bundle

Google Analytics Bundle for Symfony

  • Friday, June 30, 2017
  • by samuelmc
  • Repository
  • 1 Watchers
  • 1 Stars
  • 54 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

google-analytics-bundle (SamuelGaBundle)

Google Analytics Bundle for Symfony, (*1)

SensioLabsInsight, (*2)

This bundle adds the Google Analytics code to every page except those that match the "exclude_path" parameter., (*3)

Installation

composer require samuelmc/google-analytics-bundle (view on packagist), (*4)

add the bundle in AppKernel:, (*5)

new Samuelmc\GaBundle\SamuelGaBundle()

import the services in config.yml:, (*6)

imports:
    - { resource: security.yml }
    - { resource: services.yml }
    ...
    - { resource: "@SamuelmcGaBundle/Resources/config/services.yml" }

Configuration

there are two parameters to configure under samuel_ga: - tracking_id: your Google Analytics tracker code. - exclude_paths: a regex string which filters out paths that should not be tracked by Google Analytics. Default: '(^\/(_profiler|_wdt).+)', (*7)

samuelmc_ga:
    tracking_id: "UA-..."
    exclude_paths: '(^\/(_profiler|_wdt).+)'

License

MIT Licence, (*8)

© Samuel Moncarey, (*9)

The Versions