Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

integrating google analytics to angular-js

branch: master
README.md

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.

Something went wrong with that request. Please try again.