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: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: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