Intempt
  1. Installation
Intempt
  • Installation
    • Basic Intempt Installation
    • Create source
    • Web Snippet
    • Google Tag Manager
    • Autocapture setup
    • SPA tracking
    • 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
    • identify()
    • track()
    • record()
    • alias()
    • group()
    • consent()
    • intempt:html / intempt:page / intempt:session
    • Product Catalog Ingestion via API
  • Data Models & Event Schema
    • Event Schema Overview
    • Required Fields
    • Attribute Schema
    • Product Catalog Schema
  • Webhooks
    • Webhook Configuration
  • Server Side Experiments
    • Overview
    • Choose API endpoint
    • Handling Experiment Response
  1. Installation

Web Snippet

Installing the Web Snippet#

When you implement Intempt on a website, you add a small JavaScript snippet to your site’s HTML. This snippet initializes Intempt and automatically generates messages (events) based on user interactions.
In a basic implementation, this snippet is copied into your HTML to track page views and user actions without needing any custom code.

Before You Begin#

Before installing the web snippet, ensure you have:
An Intempt account with an organization and project created
Access to edit the HTML of your website
If you don’t have a site to test with, we recommend creating a simple GitHub Pages website.

Create Separate Dev and Prod Projects#

For clean data, create separate Intempt projects for:
Production
Development
Staging
This prevents test data from mixing with real user data.
Use environment labels to easily identify each project.

Step 1: Create a Source & Enable Autocapture#

Autocapture automatically tracks:
Page views
Clicks
Input changes
Form submissions
Other common UI interactions
It works without any custom event setup and continues to track new UI components even if your frontend changes.

To set up autocapture:#

1.
Go to Integrations → Sources
2.
Click Create Source and choose Web
3.
Under Installation, copy the provided JavaScript snippet containing the <script> tags and initialization function

Placing the Snippet on Your Site#

Paste the snippet in two locations:
1.
The first <script> block → inside your site’s <head>
2.
The second <script> block → right before the closing </body> tag
This ensures all page-level events and interactions are captured consistently.
Once installed, events such as clicks, form submissions, and input interactions will start flowing automatically into Intempt.

Autocapture Limitations#

Autocapture is powerful, but has two limitations:

1. High-volume data can be overwhelming#

Every click, input change, or submission is tracked. Without filters or defined events, this can produce noisy data.

2. Autocapture is general-purpose#

While useful for broad tracking, advanced analytics require custom events so you can capture the exact behaviors that matter most.

What’s Next?#

After installing the snippet and sending initial autocaptured events, you can:
Start refining your tracking with custom events
Analyze your incoming event data
Build reports, funnels, and insights in Intempt
Explore templates for common analytics and growth use cases
Modified at 2025-12-03 10:30:21
Previous
Create source
Next
Google Tag Manager
Built with