diff --git a/integrations/Lotame/browser.js b/integrations/Lotame/browser.js index 0a26022794..ff8ca397de 100644 --- a/integrations/Lotame/browser.js +++ b/integrations/Lotame/browser.js @@ -17,6 +17,7 @@ class Lotame { init() { logger.debug("===in init Lotame==="); + window.LOTAME_SYNCH_CALLBACK = () => {}; } addPixel(source, width, height){ @@ -38,6 +39,9 @@ class Lotame { }); } this.storage.setLotameSynchTime(Date.now()); + if(window.LOTAME_SYNCH_CALLBACK && typeof window.LOTAME_SYNCH_CALLBACK == "function"){ + window.LOTAME_SYNCH_CALLBACK(); + } } diff --git a/tests/html/script-test.html b/tests/html/script-test.html index 9b505d9f90..4fb85b3fd9 100644 --- a/tests/html/script-test.html +++ b/tests/html/script-test.html @@ -23,8 +23,11 @@ } rudderanalytics.load( - "1WxuLjndG7YDBT603xZH01mI0HW", - "http://localhost:8090" + "1X6kp0fxQpP5tzg6CAFjQoXkwa6", + "http://localhost:8090", + { + configUrl: "https://api-tf.rudderlabs.com/sourceConfig" + } ); rudderanalytics.track(); // rudderanalytics.page(); //Turn this on if Chartbeat is a destination @@ -35,6 +38,10 @@