bt51 / googleanalytics-serviceprovider
Google Analytics service provider for silex
Installs: 48
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bt51/googleanalytics-serviceprovider
Requires
- php: >=5.3.2
- twig/twig: >=1.2.0
Requires (Dev)
- silex/silex: 1.0.x-dev
This package is not auto-updated.
Last update: 2025-09-27 18:03:29 UTC
README
The GoogleAnalyticsServiceProvider adds a twig function for GA tracking
Installation
Create a composer.json your project
{
"require": {
"bt51/googleanalytics-serviceprovider": "dev-master"
}
}
Read more on composer here: http://getcomposer.org
Parameters
- ga.configuration: An array with 'code' as the key and your GA code as the value
Registering
See the example/ directory to see how to register the service
Twig
This service provider adds a twig function to output a view partial with the GA tracking script.
See the example/ directory for more information on how to use it.
License
MIT