Basic Intempt Installation
Installation Guide#
Overview#
When you implement Intempt, you add Intempt code to your website, app, or server. This code generates messages based on specific triggers you define.In a basic implementation, the code can be a snippet of JavaScript that you paste into the HTML of a website to track page views. It can also be as complex as a custom event tracked via a server-side library.The best way to understand how Intempt works is to see it in action.
Before you begin#
Before starting your Intempt implementation, you need:An Intempt account with an organization and project
Access to the code for a website or iOS app
Ability to install JavaScript or modify your codebase
Tip: If you don’t have an existing site or app, consider creating a simple GitHub Pages website to get started quickly.
Create separate development and production projects#
Intempt strongly recommends creating separate dev and prod projects to avoid polluting production data.Each project can be labeled by environment (e.g., "Production", "Development", "Staging") — this helps maintain clean data and isolate testing.
Step 1: Create a source & set up autocapture#
Autocapture is the fastest way to start collecting behavioral data in Intempt without writing custom event code.Once enabled, Intempt automatically listens to browser interactions and sends events asynchronously in the background — without blocking page load or affecting user experience.Autocapture is ideal for:validating that data is flowing correctly
capturing baseline user behavior before adding custom events
How autocapture works (async by default)#
The Intempt web snippet loads asynchronously and:does not block HTML rendering
runs continuously as users interact with the page
automatically adapts to UI changes (including SPAs and re-renders)
All captured events are sent asynchronously to Intempt’s ingestion pipeline.
You do not need to manage batching, flushing, or retries.
What autocapture tracks automatically#
Once installed, Intempt automatically captures the following browser-level events.Page & Session Events#
These events are emitted internally as intempt:page and intempt:session.
DOM Interaction Events#
Focus and blur on input fields
Label interactions linked to form elements
These interactions are emitted internally as intempt:html.
Context Automatically Attached#
Each autocaptured event includes contextual metadata such as:screen and window dimensions
You do not need to send this data manually.
To set up autocapture#
1.
Go to Integrations → Sources
4.
Under Installation, copy the JavaScript snippet (script tags + initialization function)
Replace the API key#
Replace "YOUR_API_KEY" in the snippet with the API key created in Step 1.
Add the snippet to your website#
Paste the snippet inside the <head> tag
Add it to your base HTML template so it loads on all pages
Once added, autocapture starts immediately — no additional configuration required.All events automatically flow into Intempt.
Autocapture limitations (important)#
Autocapture is intentionally general-purpose.It captures everything, but it does not understand business meaning.1. High volume can create noisy data#
Autocapture records every interaction:On high-traffic sites, this can overwhelm the Live Events view.
This is expected behavior.
2. Autocapture ≠ product analytics#
“What did the user interact with?”
“What meaningful business action occurred?”
For actionable analytics, you should add custom events for:server-side actions (payments, syncs, state changes)
Autocapture provides context.
Custom events provide meaning.Both are designed to work together.
Why this step matters#
your installation is working
sessions and pages are tracked correctly
data is flowing into Intempt
you can validate setup before deeper instrumentation
Once autocapture is live, you are ready to move on to custom events.Step 2: Set up custom events#
Custom events let you capture meaningful actions anywhere in your codebase — frontend, backend, or mobile.1. Install the Web tracker (from previous section)#
Once installed, you can start logging custom events.2. Add the tracking code to your codebase#
You can log a custom event using the record function:Example: Purchase event#
Getting custom events right#
Custom events require planning:1.
Start with your product goals
What events matter? (e.g., checkout, onboarding, subscription)
2.
Ensure data is accessible
You may need helper functions or accessors.
3.
Send clean, consistent event structures
So you can use them in reports, actions, analytics.
There are many places where you can refine event structure — naming, nesting, attributes, and consistency across pages and devices.
Step 3: Identify users#
Autocaptured events automatically associate session-level identifiers.
Custom events require manual identification.Example: Identify with email#
logged-out → logged-in states
Always set a unique identifier such as:Identification allows Intempt to merge anonymous + known sessions.
Step 4: Create events (Event Editor)#
A single event might not describe a full behavior.Example:
A signup may include:Defined events allow you to combine:into a single defined event for cleaner analytics.Defined events also work retroactively, tagging past events automatically.
What’s next?#
High-quality custom events
You will start seeing a stream of data in Intempt.Explore template reports for inspiration
This foundation now enables:
Modified at 2026-01-29 15:41:56