Skip to content

Commit

Permalink
making tracker option name specific to GA
Browse files Browse the repository at this point in the history
  • Loading branch information
robflaherty committed Jun 13, 2015
1 parent c4da93c commit 5a1965f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions riveted.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down
2 changes: 1 addition & 1 deletion riveted.min.js

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

2 changes: 1 addition & 1 deletion test/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
idleTimeout: 5,
nonInteraction: false,
//gaGlobal: '__gaTracker',
tracker: 'fooo'
gaTracker: 'fooo'

/*eventHandler: function(event) {
console.log(event);
Expand Down

0 comments on commit 5a1965f

Please sign in to comment.