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

https://github.com/dwolfhub/angular-ga-tracking

Angular Directives for Google Analytics Tracking
https://github.com/dwolfhub/angular-ga-tracking

Last synced: 16 days ago
JSON representation

Angular Directives for Google Analytics Tracking

Awesome Lists containing this project

README

          

angular-ga-tracking
===================

Angular Directives for Google Analytics Tracking

## Usage

### Including the module

```javascript
var app = angular.module("app", ["ga.tracker"]);
```

### Use the directives

#### Tracking Page Views

When the directive is used, it registers a page view at the current $location.path();. I like to add it once in each of my templates.

```html


```

#### Tracking Events (clicks)

When you add the diretive to an HTML element and that element is clicked, the event will be registered with GA.

```html
Submit Event!
```