An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/meinfernbus/GoogleBundle.svg?branch=master)](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 `