angulartics-calq
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,2 +0,2 @@ | ||
!function(angular){"use strict";angular.module("angulartics.calq",["angulartics"]).config(["$analyticsProvider",function($analyticsProvider){$analyticsProvider.registerPageTrack(function(path){calq.action.trackPageView()}),$analyticsProvider.registerEventTrack(function(action,properties){calq.action.track(action,properties)}),$analyticsProvider.registerSetSuperProperties(function(properties){for(var key in properties)calq.action.setGlobalProperty(key,properties[key])}),$analyticsProvider.registerSetUsername(function(userId){calq.user.identify(userId)}),$analyticsProvider.registerSetUserProperties(function(properties){calq.user.profile(properties)})}])}(angular); | ||
!function(angular){"use strict";angular.module("angulartics.calq",["angulartics"]).config(["$analyticsProvider",function($analyticsProvider){$analyticsProvider.registerPageTrack(function(path){try{calq.action.trackPageView()}catch(e){if(!(e instanceof ReferenceError))throw e}}),$analyticsProvider.registerEventTrack(function(action,properties){try{calq.action.track(action,properties)}catch(e){if(!(e instanceof ReferenceError))throw e}}),$analyticsProvider.registerSetSuperProperties(function(properties){try{for(var key in properties)calq.action.setGlobalProperty(key,properties[key])}catch(e){if(!(e instanceof ReferenceError))throw e}}),$analyticsProvider.registerSetUsername(function(userId){try{calq.user.identify(userId)}catch(e){if(!(e instanceof ReferenceError))throw e}}),$analyticsProvider.registerSetUserProperties(function(properties){try{calq.user.profile(properties)}catch(e){if(!(e instanceof ReferenceError))throw e}})}])}(angular); | ||
//# sourceMappingURL=../dist/angulartics-calq.min.js.map |
@@ -19,12 +19,30 @@ /** | ||
$analyticsProvider.registerPageTrack(function (path) { | ||
calq.action.trackPageView(); | ||
try { | ||
calq.action.trackPageView(); | ||
} catch (e) { | ||
if (!(e instanceof ReferenceError)) { | ||
throw e; | ||
} | ||
} | ||
}); | ||
$analyticsProvider.registerEventTrack(function (action, properties) { | ||
calq.action.track(action, properties); | ||
try { | ||
calq.action.track(action, properties); | ||
} catch (e) { | ||
if (!(e instanceof ReferenceError)) { | ||
throw e; | ||
} | ||
} | ||
}); | ||
$analyticsProvider.registerSetSuperProperties(function (properties) { | ||
for (var key in properties) { | ||
calq.action.setGlobalProperty(key, properties[key]); | ||
try { | ||
for (var key in properties) { | ||
calq.action.setGlobalProperty(key, properties[key]); | ||
} | ||
} catch (e) { | ||
if (!(e instanceof ReferenceError)) { | ||
throw e; | ||
} | ||
} | ||
@@ -34,7 +52,19 @@ }); | ||
$analyticsProvider.registerSetUsername(function (userId) { | ||
calq.user.identify(userId); | ||
try { | ||
calq.user.identify(userId); | ||
} catch (e) { | ||
if (!(e instanceof ReferenceError)) { | ||
throw e; | ||
} | ||
} | ||
}); | ||
$analyticsProvider.registerSetUserProperties(function (properties) { | ||
calq.user.profile(properties); | ||
try { | ||
calq.user.profile(properties); | ||
} catch (e) { | ||
if (!(e instanceof ReferenceError)) { | ||
throw e; | ||
} | ||
} | ||
}); | ||
@@ -41,0 +71,0 @@ |
{ | ||
"name": "angulartics-calq", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Calq plugin for Angulartics", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,5 +7,2 @@ ## angulartics-calq | ||
## Important Note | ||
This plugin has no maintainers at the moment. If you use Calq and want to contribute with code/documentation/examples and become an active maintainer of this project, please [let us know](https://github.com/angulartics/angulartics-calq/issues/new?title=I+want+to+join+as+maintainer). | ||
## Install | ||
@@ -12,0 +9,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8251
84
79