Thank you Yisrael!
So if I understood correctly this is how the code should look like?
import wixLocation from 'wix-location';
import wixWindow from 'wix-window';
$w.onReady(function () {
let query = wixLocation.query;
if (query.indexOf("utm_source=facebook") !== -1)
{wixWindow.openLightbox("LightboxName");}
})
Because unfortunately it still does not work properly ![]()