Setup
Get up and running with heyhum.js in minutes. Setup walks you through installing the heyhum.js library and initializing it for your app so events start flowing into your dashboard. Just one single file to import, no dependencies, no extra libraries.
What You’ll Do
- Install heyhum.js: Add the library to your site via a script tag or your build pipeline
- Initialize: Configure your app key, base URL (if needed), and any optional metadata you want to attach
- Verify: Confirm events are being received and that your organization’s tracking features are enabled
Quick Start (Examples)
Use your organizationAppKeyId from the dashboard. By default, the base URL is https://heyhum.com.
Standard HTML
<!-- index.html -->
<script src="https://heyhum.com/javascript/heyhum.js"></script>
<script>
heyhum.init({
organizationAppKeyId: "YOUR_ORG_APP_KEY_ID",
// baseUrl: "https://heyhum.com", // optional override
metadata: { page_name: "home" }
});
heyhum.trackLoad();
heyhum.track("on-click");
</script>
Implementation works the same on ReactJS, VueJS, Ruby on Rails, and most other frameworks because it’s one standard JavaScript file and no extra libraries.