Permalink
Browse files

making tracker option name specific to GA

  • Loading branch information...
Rob Flaherty
Rob Flaherty committed Jun 13, 2015
1 parent c4da93c commit 5a1965f0c866b87fe850723638444e49a0709af0
Showing with 4 additions and 4 deletions.
  1. +2 −2 riveted.js
  2. +1 −1 riveted.min.js
  3. +1 −1 test/test.html
View
@@ -50,8 +50,8 @@ var riveted = (function() {
googleTagManager = true;
}
if ('tracker' in options && typeof options.tracker === 'string') {
universalSendCommand = options.tracker + '.send';
if ('gaTracker' in options && typeof options.gaTracker === 'string') {
universalSendCommand = options.gaTracker + '.send';
} else {
universalSendCommand = 'send';
}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -35,7 +35,7 @@
idleTimeout: 5,
nonInteraction: false,
//gaGlobal: '__gaTracker',
tracker: 'fooo'
gaTracker: 'fooo'
/*eventHandler: function(event) {
console.log(event);

0 comments on commit 5a1965f

Please sign in to comment.