Skip to content

Commit 3e637f9

Browse files
committed
cleanup
1 parent 7d046ed commit 3e637f9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

jquery.scrolldepth.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@
9696

9797
function sendEvent(action, label, scrollDistance, timing) {
9898

99+
var command = options.trackerName ? (options.trackerName + '.send') : 'send';
100+
99101
if (standardEventHandler) {
100102

101103
standardEventHandler({'event': 'ScrollDistance', 'eventCategory': 'Scroll Depth', 'eventAction': action, 'eventLabel': label, 'eventValue': 1, 'eventNonInteraction': options.nonInteraction});
@@ -112,7 +114,6 @@
112114
} else {
113115

114116
if (universalGA) {
115-
var command = options.trackerName + (options.trackerName.length ? '.' : '') + 'send';
116117

117118
window[gaGlobal](command, 'event', 'Scroll Depth', action, label, 1, {'nonInteraction': options.nonInteraction});
118119

0 commit comments

Comments
 (0)