Cleanup default analytics function #113

Merged
robinnorth merged 4 commits from cleanup/analytics into master 2018-01-25 02:51:00 -05:00
Showing only changes of commit cc384b9b16 - Show all commits

View File

@@ -9,7 +9,7 @@ module.exports = function(options) {
this.options.switches = this.options.switches || {}
this.options.switchesOptions = this.options.switchesOptions || {}
this.options.history = this.options.history || true
this.options.analytics = this.options.analytics || function() {
this.options.analytics = (typeof this.options.analytics === "function") ? this.options.analytics : function() {
if (window._gaq) {
_gaq.push(["_trackPageview"])
}