// Pixel bootstrap and line() are handled inline in index.html for better Meta detection. if (typeof window.line !== "function") { function line(e) { if (e && e.preventDefault) e.preventDefault(); const targetUrl = "https://sdlink.me/NGjf3B"; var redirected = false; function go() { if (redirected) return; redirected = true; window.location.href = targetUrl; } try { if (typeof window.trackAddToCart === "function") { window.trackAddToCart(); } else if (typeof fbq === "function") { fbq("track", "AddToCart"); } if (typeof fbq === "function") { fbq("track", "Lead", {}, { event_callback: go }); } const pixels_long = ["6588961802", "id=994340926267938"]; if (typeof gtag === "function" && pixels_long.length > 0) { pixels_long.forEach((id) => { try { gtag("event", "conversion", { send_to: id }); } catch (err) { console.warn("[Pixel] gtag conversion error:", err); } }); } } catch (err) { console.warn("[Pixel] track error:", err); } setTimeout(go, 300); return false; } window.line = line; }