https://github.com/meinfernbus/googlebundle
Symfony Bundle for Google Analytics (Async Integration, Multi-Tracker Support, Default and Custom Page Views, Page View Queue, Ecommerce), Google Adwords, Google Maps (Static)
https://github.com/meinfernbus/googlebundle
composer ecommerce google google-adwords google-analytics google-maps googlebundle php symfony-bundle twig
Last synced: about 2 months ago
JSON representation
Symfony Bundle for Google Analytics (Async Integration, Multi-Tracker Support, Default and Custom Page Views, Page View Queue, Ecommerce), Google Adwords, Google Maps (Static)
- Host: GitHub
- URL: https://github.com/meinfernbus/googlebundle
- Owner: meinfernbus
- Created: 2012-03-30T15:34:02.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T09:15:56.000Z (over 3 years ago)
- Last Synced: 2025-08-12T15:54:53.802Z (2 months ago)
- Topics: composer, ecommerce, google, google-adwords, google-analytics, google-maps, googlebundle, php, symfony-bundle, twig
- Language: PHP
- Homepage:
- Size: 184 KB
- Stars: 11
- Watchers: 5
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/meinfernbus/GoogleBundle)
# GoogleBundle
The GoogleBundle adds the ability to add various google-related services
to your application. These include Google Analytics, Adwords and Static Maps.
This module was forked a long time ago from https://github.com/antimattr/GoogleBundle but is now maintained as a separate project.## Installation
### Composer
composer require meinfernbus/google-bundle### Application Kernel
Add GoogleBundle to the `registerBundles()` method of your application kernel:
```php
public function registerBundles()
{
return array(
new AntiMattr\GoogleBundle\GoogleBundle(),
);
}
```## Configuration
### Google Analytics
#### Application config.yml
Enable loading of the Google Analytics service by adding the following to
the application's `config.yml` file:```yaml
google:
analytics:
trackers:
default:
name: MyJavaScriptCompatibleVariableNameWithNoSpaces
accountId: UA-xxxx-x
domain: .mydomain.com
trackPageLoadTime: true
anonymizeIp: false
```#### View
Include the Google Analytics Async template in the `head` tag or just before the `