Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
erpheus committed Feb 2, 2014
1 parent 34eb703 commit fe2a375
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/plugins/sammy.googleanalytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
//
Sammy.GoogleAnalytics = function(app, tracker) {
var _tracker = tracker || window.pageTracker,
trackerName = "send",
trackerName = 'send',
shouldTrack = true;

if (typeof tracker == 'string' || tracker instanceof String){
trackerName = tracker + ".send";
trackerName = tracker + '.send';
delete _tracker;
}

Expand All @@ -70,7 +70,7 @@
} else if (typeof _gaq != 'undefined') {
_gaq.push(['_trackPageview', path]);
} else if (typeof ga == 'function') {
ga(trackerName,'pageview',{
ga(trackerName, 'pageview', {
'page': path
});
}
Expand All @@ -84,7 +84,7 @@
},
// send a page view to the tracker with `path`
track: function(path) {
if((typeof _tracker != 'undefined' || typeof _gaq != "undefined" || typeof ga == 'function') && shouldTrack) {
if((typeof _tracker != 'undefined' || typeof _gaq != 'undefined' || typeof ga == 'function') && shouldTrack) {
this.log('tracking google analytics', path);
trackPageview(path);
}
Expand Down

0 comments on commit fe2a375

Please sign in to comment.