← All scenarios

next/script — strategy="beforeInteractive"

Injects wire.js into the HTML before React hydrates. The actual <Script> with strategy="beforeInteractive" is rendered from _document.js (the only place Pages Router supports it).

Each side runs the same scenario in its own iframe. The iframes load independently, so you can see how each pixel version behaves under identical conditions.

V1 · current pixel
Verdict
Initialising…
window.load
wire.js
pixel
Event timeline
  1. No events recorded yet…
Script tag for this scenario
// Rendered from pages/_document.js
<Script src="https://staging-api.wire.spbx.app/wire.js?account_id=79&property_id=6a2111320c2dee2dc5548935"
        strategy="beforeInteractive" />
V2 · proposed fix
Verdict
Initialising…
window.load
wire.js
pixel
Event timeline
  1. No events recorded yet…
Script tag for this scenario
// Rendered from pages/_document.js
<Script src="https://staging-api.wire.spbx.app/wire.js?pixel_id=6a211df10c2dee2dc5548936&account_id=79&property_id=6a2111320c2dee2dc5548935"
        strategy="beforeInteractive" />