Getting started

Quick start guide to integrate Hood Web SDK (ht.js).
developer

Minimal integration

Quick start — get tracking up and running in seconds:

<script src="https://sdk.ocmcore.com/sdk/ht-latest.js" data-tag="NjY4bL60M84D7DQ235QxNDY4MjE0NhGg" async></script>
Get your integration code

Copy this code from Configuration Hub: Go to Configuration Hub → select your configuration Navigate to Instructions tab Copy the complete script tag (including your unique data-tag)

Your configuration key (data-tag) is automatically generated and can be found in the same location.

Configuration options:

  • data-tag: Your configuration key (required)

For all available configuration options, see Configuration reference.

The SDK automatically fetches your configuration and initializes tracking.

Configuration management
This script enables auto-conf — it fetches your configuration and executes whatever is enabled in your Hood application. Go to your Hood dashboard to configure modals, push notifications, targeting rules, and all other features.
When to use async vs blocking
async (recommended): Non-blocking, loads in parallel. Use for standard tracking without consent requirements. No async: Blocking load. Use when you need to enforce GDPR policy and ensure compliance before other scripts load.

Next steps