Intempt
  1. Installation
Intempt
  • Installation
    • Basic Intempt Installation
    • Create source
    • Google Tag Manager
    • Environment Setup
    • Validating Installation
  • SDK
    • JS SDK
    • Android SDK
    • iOS SDK
    • Node.js SDK
  • API Reference
    • Track data
      POST
    • Consent
      POST
    • Choose API
      POST
    • Recommendations Feed API
      POST
  • Data Ingestion & Tracking
    • intempt:html / intempt:page / intempt:session
    • Product Catalog Ingestion via API
    • How Intempt Works — A One-Page Mental Model
  • Data Models & Event Schema
    • Event Schema Overview
  • Webhooks
    • All about Webhooks
  • Server Side Experiments
    • Overview
  1. Installation

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:
first-time installations
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
does not delay page load
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#

Page view
Page leave
Session start
Session end
Time spent on page
Previous page context
These events are emitted internally as intempt:page and intempt:session.

DOM Interaction Events#

Clicks on elements
Input value changes
Form submissions
Focus and blur on input fields
Typing in:
input
textarea
select
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:
page URL
page title
screen and window dimensions
session identifier
timestamps
navigation context
You do not need to send this data manually.

To set up autocapture#

1.
Go to Integrations → Sources
image.png
2.
Click Create Source
image.png
3.
Select Web
4.
Under Installation, copy the JavaScript snippet (script tags + initialization function)
Screenshot 2026-01-28 142812 (2).png

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#

image.png
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:
every click
every input change
every form interaction
On high-traffic sites, this can overwhelm the Live Events view.
This is expected behavior.

2. Autocapture ≠ product analytics#

Autocapture answers:
“What did the user interact with?”
It does not answer:
“What meaningful business action occurred?”
For actionable analytics, you should add custom events for:
onboarding completion
add to cart
checkout success
subscription upgrades
important page views
server-side actions (payments, syncs, state changes)
Autocapture provides context.
Custom events provide meaning.
Both are designed to work together.

Why this step matters#

This step ensures that:
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#

Example: Signup event (frontend form data)#


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#

To track users across:
browsers
devices
mobile apps
logged-out → logged-in states
Always set a unique identifier such as:
email
database user ID
phone number
Identification allows Intempt to merge anonymous + known sessions.

Step 4: Create events (Event Editor)#

A single event might not describe a full behavior.
image.png
Example:
A signup may include:
Clicking "signup"
Filling fields
Submitting form
Completing verification
Defined events allow you to combine:
autocapture events
custom events
page views
into a single defined event for cleaner analytics.
Defined events also work retroactively, tagging past events automatically.

What’s next?#

Now that you’ve set up:
Autocapture
High-quality custom events
User identification
Defined events
You will start seeing a stream of data in Intempt.
Next steps:
Create reports
Explore dashboards
Build journeys
Personalize experiences
Trigger messages
Analyze product behavior
Explore template reports for inspiration
This foundation now enables:
Behavioral analytics
Conversion funnels
Retention analysis
Segmentation
Personalization
Experimentation

Modified at 2026-01-29 15:41:56
Next
Create source
Built with