Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion extensions/kilkaya/k5a_meta_send.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
/* global a, b */
/* eslint-disable-next-line no-unused-vars */
(function (a, b) {
// Configuration: delay to ensure conversion data is set by conversion extension
var CONVERSION_DATA_WAIT_MS = 150;

try {
if (String(b.event_name) !== 'checkout' || String(b.event_action) !== 'success') {
return;
Expand Down Expand Up @@ -80,7 +83,7 @@
} catch (err) {
persistLog('✗ ERROR sending conversion', {error: err.message, stack: err.stack});
}
}, 150); // Small delay to ensure k5aMeta.conversion is set
}, CONVERSION_DATA_WAIT_MS);

} catch (e) {
try {
Expand Down