← All scenarios

In-app navigation (auto-triggered)

A simpler, no-clicks version of the in-app navigation test. Each iframe loads wire.js and then, 2 seconds later, automatically simulates a virtual page navigation by changing the URL without a real reload. Same effect as the user clicking a link in a single-page app. Useful as a quick smoke test of V2’s SPA support without any interaction.

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.

How to test:
  1. Load the page and wait ~5 seconds.
  2. At ~2 seconds in, each iframe automatically triggers a virtual navigation (the iframe URL changes in the timeline, without a reload).
  3. Check the pixel count in each column after the navigation fires.
Expected: V1 — pixel count stays at ×1 (or ×0 if it lost the initial race). V1 has no way to detect URL changes that aren’t real page loads. V2 — pixel count goes to ×2, because V2 detects the URL change and refires.
V1 · current pixel
Verdict
Initialising…
window.load
—
wire.js
—
pixel
—
Event timeline
  1. No events recorded yet…
Script tag for this scenario
// wire.js loads normally. The iframe fires history.pushState at 2s.
<script type="text/javascript" async src="https://staging-api.wire.spbx.app/wire.js?account_id=79&property_id=6a2111320c2dee2dc5548935"></script>
V2 · proposed fix
Verdict
Initialising…
window.load
—
wire.js
—
pixel
—
Event timeline
  1. No events recorded yet…
Script tag for this scenario
// wire.js loads normally. The iframe fires history.pushState at 2s.
<script type="text/javascript" async src="https://staging-api.wire.spbx.app/wire.js?pixel_id=6a211df10c2dee2dc5548936&account_id=79&property_id=6a2111320c2dee2dc5548935"></script>