Knotch Measurement Unit API

Browser-side JavaScript API exposed by the Knotch tag for controlling Measurement Units on a page at runtime: Knotch.addUnit(), Knotch.removeUnit(), Knotch.setFocus(), Knotch.enableUnit(), Knotch.disableUnit() and Knotch.setOptout(). Paired with the knotch-ignore HTML attribute, which holds a placeholder container back from injecting a Unit until the publisher explicitly enables it.

API entry from apis.yml

apis.yml Raw ↑
aid: knotch:unit-api
name: Knotch Measurement Unit API
description: 'Browser-side JavaScript API exposed by the Knotch tag for controlling Measurement Units
  on a page at runtime: Knotch.addUnit(), Knotch.removeUnit(), Knotch.setFocus(), Knotch.enableUnit(),
  Knotch.disableUnit() and Knotch.setOptout(). Paired with the knotch-ignore HTML attribute, which holds
  a placeholder container back from injecting a Unit until the publisher explicitly enables it.'
humanURL: https://docs.knotch.it/unit_api/
baseURL: https://www.knotch-cdn.com
tags:
- JavaScript
- Measurement
- Consent
properties:
- type: Documentation
  url: https://docs.knotch.it/unit_api/
- type: Components
  url: components/knotch-components.yml