Skip to content

Commit 565567c

Browse files
authored
Merge pull request #65 from dubinc/fix-queue-setup
Refactor tracking methods to queue arguments for analytics
2 parents 077192e + 5732571 commit 565567c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/html/conversion-tracking.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
['trackClick', 'trackLead', 'trackSale'].forEach(function (m) {
1919
w[da][m] = function () {
20-
w[da](m, ...arguments);
20+
(w[da].q = w[da].q || []).push([m, ...Array.from(arguments)]);
2121
};
2222
});
2323
})(window, 'dubAnalytics');

apps/html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
['trackClick'].forEach(function (m) {
1919
w[da][m] = function () {
20-
w[da](m, ...arguments);
20+
(w[da].q = w[da].q || []).push([m, ...Array.from(arguments)]);
2121
};
2222
});
2323
})(window, 'dubAnalytics');

0 commit comments

Comments
 (0)