Introducing the new Optimization SDK
We have released the Optimization SDK, a new developer toolkit for integrating Contentful Personalization and Analytics across web and server applications from a single foundation.
The Optimization SDK includes:
@contentful/optimization-web: Browser SDK for personalization, analytics, and consent management.@contentful/optimization-node: Server SDK for server-side rendering (SSR).@contentful/optimization-react-web: React integration with providers, hooks, and router adapters.@contentful/optimization-nextjs: Next.js integration for SSR, hybrid rendering, and client-side tracking.@contentful/optimization-core: Core SDK.
The Optimization SDK simplifies implementation and helps you get up and running faster. It provides:
- A unified SDK experience across web and server applications.
- Built-in support for server-side rendering, including Next.js.
- Less implementation code and faster setup.
- Built-in consent management, automatic interaction tracking, and preview support.
NOTE: The Optimization SDK is available to all customers with a Contentful Personalization license.
We recommend using the Optimization SDK for all new Personalization and Analytics integrations. Existing integrations built with experience.js continue to be supported.
For more information, see the Optimization SDK developer documentation and the open-source Github repository.