Validation

Data tracked by Objectiv adheres to an open, standardized taxonomy. This means it's well-structured & self-descriptive, and can be validated at the first step of the pipeline. Objectiv provides several tools to catch errors before data starts flowing in, outlined below.

Build-time validation

All Objectiv's functions come with TypeScript definitions.

During instrumentation, you'll get inline documentation for every function, and linting for any validation issues: unknown tagging/tracking calls, missing properties, or wrongly typed properties.

Example inline error in IDE:

IDE validation: property id

Run-time validation

When you run your application, any validation errors are caught by the Objectiv debugger, and displayed in the browser console:

  • Errors: Warnings are thrown for unknown tagging/tracking calls, missing properties, or wrongly typed properties.
  • Uniqueness: If an Event id and its Location Stack are not unique, an Error is thrown.

Collector validation

As a final catch-all, Objectiv's Collector validates any incoming Event against the taxonomy and its properties.

For more background, see the Collector docs.