Intempt
  1. Data Ingestion & Tracking
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. Data Ingestion & Tracking

record()

record()#

Purpose#

The record method is used to log detailed events and interactions within an application.
It captures rich user data, account-level information, and event-specific properties — ensuring tracking occurs only after user consent and parameter validation.
record is typically used when you need deeper context than a simple action event, such as logging logins, purchases, updates, or events requiring both user and account attributes.

Usage Example#

In this example, the record method logs a “User Login” event, including user attributes and additional metadata such as the IP address of the login.

Declaration#

The TypeScript declaration of the method:

Parameters#

RecordParams defines the accepted fields for event recording:
These fields allow the record method to provide comprehensive tracking and support complex analytics use cases.

productId support#

The record() method also accepts an optional:
productId: string
Used for product ingestion cases.

Rules:#

productId is required if you are sending product catalog data
If productId is provided, you may omit:
userId
profileId
accountId
Intempt will store the product without linking it to a user.

Forbidden Event Names#

The following event titles must not be used with record (or any custom event).
They are reserved for internal Intempt tracking and will cause conflicts:
auto-track
view page
leave page
change on
click on
submit on
identify
consent
Avoid using these names to ensure accurate event categorization and prevent system errors.
Modified at 2025-12-03 14:35:31
Previous
track()
Next
alias()
Built with