We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2979be6 commit cb69fc1Copy full SHA for cb69fc1
packages/script/src/extensions/client-conversion-tracking.js
@@ -67,13 +67,20 @@ const initClientConversionTracking = () => {
67
const queueManager = window._dubAnalytics.qm;
68
const existingQueue = queueManager.queue || [];
69
70
- existingQueue.forEach(([method, ...args]) => {
+ const remainingQueue = existingQueue.filter(([method, ...args]) => {
71
if (method === 'trackLead') {
72
trackLead(...args);
73
+ return false;
74
} else if (method === 'trackSale') {
75
trackSale(...args);
76
77
}
78
+
79
+ return true;
80
});
81
82
+ // Update the queue with remaining items
83
+ queueManager.queue = remainingQueue;
84
85
};
86
0 commit comments