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

identify()

identify()#

Purpose#

The identify method is used to:
Assign a unique identifier (usually a user ID) to each user
Link all subsequent actions and events to this user ID
This ensures that all tracked behavior belongs to the correct customer profile.

Usage Example#

Below is a JavaScript example illustrating how identify is used during a login request.
The method is typically called after a user is authenticated, ensuring that all later events are tied to the identified user.
In this scenario, once the login succeeds, the user’s email is passed to identify, allowing Intempt to associate all subsequent actions with this user.

Declaration#

The method signature in TypeScript:

Parameters#

IdentifyParams defines the accepted fields:
userId is required.
All other fields are optional and allow adding additional metadata to the identification event.

Forbidden Event Names#

The following event titles must not be used with identify (or any custom event).
They are reserved for internal system behavior and will cause conflicts:
auto-track
view page
leave page
change on
click on
submit on
identify
consent
These names belong to Intempt’s automatic tracking system and should not be repurposed for custom event titles.
Modified at 2025-12-03 11:10:46
Previous
Recommendations Feed API
Next
track()
Built with