Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonto committed Jun 7, 2014
1 parent fa0372a commit c85939f
Show file tree
Hide file tree
Showing 6 changed files with 1,650 additions and 485 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularytics",
"version": "0.2.4",
"version": "0.3.0",
"main": "./dist/angularytics.min.js",
"description": "The solution to tracking page views and events in a SPA with AngularJS",
"repository": {
Expand Down
10 changes: 0 additions & 10 deletions dist/angularytics.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/**
* The solution to tracking page views and events in a SPA with AngularJS
* @version v0.2.4 - 2014-04-21
* @link https://github.com/mgonto/angularytics
* @author Martin Gontovnikas <[email protected]>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function () {
angular.module('angularytics', []).provider('Angularytics', function () {
var eventHandlersNames = ['Google'];
Expand All @@ -29,7 +22,6 @@
'$rootScope',
'$location',
function ($injector, $rootScope, $location) {
// Helper methods
var eventHandlers = [];
angular.forEach(eventHandlersNames, function (handler) {
eventHandlers.push($injector.get('Angularytics' + handler + 'Handler'));
Expand All @@ -40,7 +32,6 @@
});
};
var service = {};
// Just dummy function so that it's instantiated on app creation
service.init = function () {
};
service.trackEvent = function (category, action, opt_label, opt_value, opt_noninteraction) {
Expand All @@ -57,7 +48,6 @@
}
});
};
// Event listening
$rootScope.$on(pageChangeEvent, function () {
service.trackPageView($location.url());
});
Expand Down
2 changes: 1 addition & 1 deletion dist/angularytics.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/angularytics.zip
Binary file not shown.
Loading

0 comments on commit c85939f

Please sign in to comment.