angularjs-googleanalytics

integrating google analytics to angular-js

Added by: Sam Deering

GitHub

Repository

isamuelson/angularjs-googleanalytics

Stats

Stars: 57

Watchers: 57

Forks: 13

Module Description

Tracking Google Analytics Page Views with Angular.js

How?

follow these step:

  • Set 'YOUR GOOGLE ACCOUNT' in googleanalyticis.js placeholder with your google account id

  • Add the service to your angular js app module:

    var app = angular.module('myapp', ['analytics']) { ... });

  • Now just have analytics to be injected in your contorller.

    function myCtrl($rootScope, $scope, $http, analytics) { ... };

Code licensed under The MIT License.

Module stats last updated: 2017-08-13 16:00:04

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!