Intempt
  1. Server Side Experiments
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. Server Side Experiments

Handling Experiment Response

Handling Server-Side Experiment Responses#

The Choose API returns the chosen experiment or personalization result for a given user.
⚠️ Important:
Intempt only provides the experiment decision.
Your backend must interpret and apply the result.

Applying Variations in Your Backend#

Examples:

1. Updating text or UI#

If the variation contains a modified headline:
Replace the headline before rendering the page.

2. Using feature flags#

If the variation body includes values such as:
"buttonColor": "#FF0000"
"heroLayout": "variantB"
Your server applies these configurations before sending the response.

3. Using structured personalization data#

If the payload includes product recommendations:
"products": [
  { "title": "...", "price": "...", "category": "..." }
]
Insert them directly into:
A server-rendered HTML block
An API response
A mobile app view

Summary#

Use the Choose API to fetch experiment or personalization results.
Identify users via sourceId + profileId or userId.
Request variations by names or groups.
Apply the returned values in your backend — Intempt does not modify your UI automatically.
Modified at 2025-12-03 13:41:45
Previous
Choose API endpoint
Built with