DEV Community

Aleksander Sekowski
Aleksander Sekowski

Posted on Fully Autonomous

A VAST click report should separate tracking from navigation.

A video click can trigger tracking notifications and a navigation action. If a report treats every URL under VideoClicks as a page to open, it confuses those responsibilities and makes a partial failure difficult to diagnose.

In linear VAST, ClickThrough identifies a navigation destination, while ClickTracking identifies click notifications. The declaration's role should survive parsing, wrapper resolution and runtime observation.

This walkthrough builds a local diagnostic plan. It does not play an ad, open a page or send tracking requests.

Preserve roles when parsing the tag

Model the selected navigation target separately from the tracking declarations. Keep each declaration's document and element path so the report can explain where it originated.

Do not infer the role from a hostname or URL suffix. A navigation URL can contain measurement parameters, and a tracking endpoint can redirect. The XML declaration and applicable resolution rules establish the intended role.

Keep this analysis scoped to the rendered creative. Companion ads, nonlinear ads and interactive execution have their own structures and behavior. Combining all click-like URLs into one undifferentiated list makes the report harder to interpret.

If wrappers contribute click declarations, preserve the raw inputs before applying the selected VAST version's resolution rules. The resulting navigation selection and the contributing tracking declarations answer different questions.

Build a diagnostic plan without executing it

The following complete Node.js example uses already parsed and resolved values. It models the actions associated with a synthetic click:

import assert from 'node:assert/strict';

function clickPlan({ selectedClickThrough, clickTracking }) {
  const actions = clickTracking.map((entry, index) => ({
    action_id: `tracking-${index}`,
    role: 'tracking',
    uri: entry.uri,
    source: entry.source
  }));
  if (selectedClickThrough) actions.push({
    action_id: 'navigation',
    role: 'navigation',
    uri: selectedClickThrough.uri,
    source: selectedClickThrough.source
  });
  return actions;
}

const input = {
  selectedClickThrough: {
    uri: 'https://advertiser.example/product', source: 'inline.xml'
  },
  clickTracking: [
    { uri: 'https://measure-a.example/click?id=7', source: 'wrapper.xml' },
    { uri: 'https://measure-b.example/click?id=7', source: 'inline.xml' }
  ]
};
const plan = clickPlan(input);
assert.equal(plan.filter(a => a.role === 'tracking').length, 2);
assert.equal(plan.filter(a => a.role === 'navigation').length, 1);
assert.equal(plan.find(a => a.action_id === 'navigation').source, 'inline.xml');
assert.equal(clickPlan({ ...input, selectedClickThrough: null })
  .some(a => a.role === 'navigation'), false);
Enter fullscreen mode Exit fullscreen mode

The action IDs are local diagnostic identifiers. They are not VAST fields or proof that an action happened. A plan records what the integration intends to do after a controlled click.

The helper also does not resolve wrapper semantics or validate the URLs. Those checks belong before this already-resolved input reaches the planner.

Record runtime outcomes independently

During a controlled player test, capture the click interaction, attempted tracking dispatches and attempted navigation. Preserve timestamps and correlation information sufficient to associate them with the same interaction.

Give navigation and tracking separate outcome fields. For example, navigation might be blocked by the environment while both tracking requests were attempted. Another run might open the destination while one notification fails.

Do not turn either partial result into a single click-success boolean without retaining the underlying observations. The repair depends on which action failed and where it stopped.

Also distinguish attempted dispatch from receiver observation. A request visible in the player trace does not establish that a measurement vendor processed it. Conversely, missing evidence in one capture can reflect incomplete instrumentation rather than absence of the request.

Investigate navigation at the actual interaction boundary

If the destination does not open, inspect the selected target, the input gesture and the environment's navigation restrictions. A test harness invoking a method programmatically may not reproduce a real user interaction.

Preserve whether the player tried to open an embedded browser, an external browser or another supported destination mechanism. The relevant behavior depends on the platform and integration.

If the selected URL redirects, record the chain observed in the controlled environment and the final attempted destination. A tracking-looking first URL is not enough to classify the entire navigation path by appearance.

Use test destinations and test accounts. Investigating click behavior should not require repeatedly activating production campaign URLs and creating misleading traffic.

Investigate tracking as its own request path

For a missing notification, locate its source declaration and confirm that it survived wrapper resolution. Then inspect macro expansion and the request-making component.

Capture the template and expanded URI separately. A literal macro or incorrectly encoded value can cause a malformed request even when the player selected the correct declaration.

If several declarations share a URI, preserve their individual origins in the report. Runtime deduplication and dispatch behavior need to follow the applicable contract, while the evidence should still show the declarations that were present.

Avoid manually firing a production tracker as a connectivity test. A local URL construction test or controlled endpoint can investigate dispatch without manufacturing a real click signal.

Build regression cases for partial outcomes

Keep a baseline with one selected navigation target and several tracking declarations. Add a case with no selected navigation target and verify that the report does not invent one from a tracking URI.

Then simulate navigation failure while leaving tracking observations intact. Add the reverse case as well. These protect the distinction that a single happy-path click test cannot exercise.

Keep player-build and environment metadata with the result. A popup restriction introduced by the test harness is different from a parsing regression in the player, even when both prevent navigation.

Where the player supports keyboard, remote-control or accessibility input, exercise the relevant interaction path as well. A mouse-only harness may miss how the real environment dispatches the click or grants navigation permission. Preserve which input method produced each observation instead of treating all test interactions as equivalent.

I maintain VASTlint. The VAST tester helps inspect click declarations before a controlled playback run. Keep the selected destination, declaration provenance and runtime outcomes together so a click ticket identifies the action that actually needs investigation.

Sources

Technical sources checked October 25, 2026. Drafted with AI; examples are synthetic unless explicitly stated otherwise.

Top comments (0)