Migrating to API integration
Migrating Luigi’s Box integrated services from the LBX script to direct API integrations is generally a low-risk change when you phase it carefully.
Recommended rollout
Section titled “Recommended rollout”- Request a modified LBX script.
- Deploy that modified script only in development and testing.
- Implement and validate the new API integration.
- Release the API integration to production, then disable the overlapping frontend service.
Step 1: Request a modified LBX script
Section titled “Step 1: Request a modified LBX script”Contact Luigi’s Box support and ask for an LBX script variant with the service you are migrating disabled.
Example:
- If you are moving recommendations to backend API calls but still keeping search on the old integration, ask for an LBX script with recommendations disabled and search still active.
Step 2: Use the modified script in non-production only
Section titled “Step 2: Use the modified script in non-production only”Keep the original LBX script in production while you build and test the replacement integration in development and staging. This avoids service disruption during the migration.
Step 3: Build the API integration
Section titled “Step 3: Build the API integration”Implement the API-based replacement and verify that request payloads, analytics identifiers, and returned content match the behavior you expect.
Useful references:
Step 4: Release safely
Section titled “Step 4: Release safely”When the API integration is ready:
- Deploy the new code to production.
- Keep the original production LBX script in place during rollout.
- Use Luigi’s Box emergency deactivation to disable the frontend-managed service you replaced so the old and new integrations do not overlap.
- Use browser developer tools, especially the Network tab, to inspect what the old integration is sending today.
- Keep user identifiers and object identities consistent across the old and new integrations. Mismatched identities are a common source of broken personalization and weak recommendations.
Related
Section titled “Related”Was this page helpful?
Thanks.