Video

The video plugin measures how far people really watch, not just whether they pressed play.

Automatic capture

Every <video> with controls, or inside [data-x3-video], is tracked:

<video src="/media/product-tour-landscape.mp4" controls></video>
<div data-x3-video="hero-reel"><video src="/media/reel.mp4" autoplay muted loop playsinline></video></div>
  • Id: data-x3-video, else the file name without extension. Suffixes -landscape, -portrait, -quer, -hoch are stripped, so the formats of one video aggregate under one id.
  • Format: data-x3-video-format (landscape / portrait), else from the video's dimensions, else unknown.
  • Name (shown in the dashboard, MCP and exports): data-x3-video-title on the video or a wrapper, else its title / aria-label, else the <figcaption> of its <figure>, else the file name. The best source seen wins; e-mail- or phone-like text is dropped and names are cut at 80 characters. A name set with „Umbenennen“ on Verhalten › Videos always wins.
  • Plays: a new play starts from < 1 s or after ended; resuming is the same play. At most 10 plays per pageview.
  • Watched seconds count only normal playback (time advancing by less than 1.5 s per update, not while paused); seeking closes the current range.
  • Coverage: a 100-bucket bitmap (each percent of the duration) plus merged watched ranges.
  • Rewatches (SDK 0.4+): parts played again within the same play (seeking back, rewinding) as merged ranges (at most 20). A replay after ended is a new play, not a rewatch.
  • File URL (SDK 0.4+): the absolute URL of the played file without query string and hash, for frame previews in the dashboard. The server keeps it only on the page's host or one of the project's domains; blob:/data: sources (MSE players) send none. Custom players pass it as url.
  • Completed = the video ended and at least 90 % of it was covered.
  • Events: video_start {video, n, format} and video_complete {video, n} (sent immediately).
<figure>
  <video src="/media/tour.mp4" controls data-x3-video-title="Produkt-Tour (2 Min.)"></video>
  <figcaption>So funktioniert die Software</figcaption>
</figure>

Video without controls and outside a marked wrapper: x3.video.track(element, { id: "teaser", title: "Teaser" }).

Custom players (YouTube, Vimeo, Wistia …)

Feed positions from the player's API; 3x builds coverage the same way:

const tracker = x3.video.custom("webinar-2026", { format: "landscape", src: "youtube", title: "Webinar 2026" });
// a self-hosted file in your own player: pass its URL for frame previews
// x3.video.custom("tour", { url: "/media/tour.mp4" });

player.on("play", () => tracker.play(player.currentTime, player.duration));
player.on("timeupdate", () => tracker.progress(player.currentTime, player.duration));
player.on("pause", () => tracker.pause(player.currentTime));
player.on("seeked", (from, to) => tracker.seek(from, to));
player.on("ended", () => tracker.ended());

Reports

  • GET …/analytics/videos (MCP analytics_videos) – per video: name (title, titleSource: manual, attribute, label, caption, or file/none when derived from the file name or id), plays, visits with a play, start rate (vs pageviews of pages showing it), hook rate (3 s), share at the middle, average watched seconds, coverage, max position, completion rate, duration, leads afterwards (visits that started the video before inquiring) and lead rate, per format. Takes the list parameters (sort, f.<column>, q, fields, cursor).
  • PUT …/analytics/videos/{video}/title (config:write, audited) – rename a video; {"title": null} goes back to the name from the page.
  • GET …/analytics/videos/{video}/retention (MCP analytics_video_retention) – 100-point retention curve overall and per format, with the average duration (durationS) for a time axis.
  • GET …/analytics/videos/{video}/timeline?format=all|landscape|portrait|unknown (MCP analytics_video_timeline, plan feature video analytics: Growth and up) – second by second (20–300 buckets, longer videos coarser): share and number still watching, exits (last watched second, plays that finished excluded), rewatches and skips per bucket; the top drop-off zones, rewatch and skip zones; the captured file URLs per format (kind file, hls, embed or unknown). Older plays without ranges fall back to their percent bitmap.
  • Relevance: video started, ≥ 30 s watched, ≥ 50 % covered and completed add points (Relevance score).

In the dashboard

Verhalten › Videos draws the retention on the real video time: 0:00, the quarter marks and the end on the x axis, the share still watching on the y axis, and the markers „3 s“, „Hälfte“ and „Ende“ at their true positions. With video analytics (Growth and up) the curve is second by second, the spots where most viewers leave are marked, rewatched and skipped parts get their own lanes, and hovering shows the time, the share, how many leave there and a frame of the video at that moment (self-hosted files only; YouTube, Vimeo and Wistia have no frames). Each visit shows a watch strip per play. Smaller plans see the curve on the same time axis and the rest locked with the plan that has it.

Duration is capped at 2 hours.