---
title: "Plugins"
slug: "plugins"
abstract: "Learn about plugins that extend the Content SDK with specific functionality."
---
# Plugins

Plugins are modular components that extend the Content SDK with specific functionality. Each plugin encapsulates a particular capability like events or personalization, and can declare dependencies on other plugins. Due to their modular nature, you can include the exact functionality you need. They’re type-safe with full TypeScript support and proper type inference. Plugins are also declarative providing clear dependency management between different plugins. See [Initializing tracking, events, and personalization in the Content SDK](https://doc.sitecore.com/sai/en/developers/content-sdk/20/initializing-tracking,-events,-and-personalization-in-the-content-sdk.md "Initializing tracking, events, and personalization in the Content SDK") for more information.

The interface for a plugin is as shown:

```csharp
export interface Plugin<Options = unknown, Adapter = unknown> {
  name: string;
  options?: Options;
  dependencies?: PluginDependency[];
  init?: () => void | Promise<void>;
  adapter?: Adapter;
}
```

<table style="width:100%;" class="informaltable frame-void rules-rows"><thead><tr><th class="th"><p>Field</p></th><th class="th"><p>Description</p></th></tr></thead><tbody><tr><td class="td"><p><code class="code">name</code></p></td><td class="td"><p>Name of the plugin.</p></td></tr><tr><td class="td"><p><code class="code">options</code></p></td><td class="td"><p>Options specific to the plugin.</p></td></tr><tr><td class="td"><p><code class="code">dependencies</code></p></td><td class="td"><p>Plugins can declare dependencies on other plugins by using the dependencies field. This allows the SDK to ensure that required capabilities are present and initialized before a dependent plugin runs.</p></td></tr><tr><td class="td"><p><code class="code">init()</code></p></td><td class="td"><p>Initialization function run once when <code class="code">init</code> is called for the first time. Can be async also.</p></td></tr><tr><td class="td"><p><code class="code">adapter</code></p></td><td class="td"><p>Optional adapter used for specifying environment requirements explicitly in a type‑safe way.</p></td></tr></tbody></table>

## Available plugins

The following plugins and their corresponding capabilities are available out of the box:

<table style="width:100%;" class="informaltable frame-void rules-rows"><thead><tr><th class="th"><p>Plugin</p></th><th class="th"><p>Purpose</p></th><th class="th"><p>Package</p></th></tr></thead><tbody><tr><td class="td"><p><code class="code">analyticsPlugin()</code></p></td><td class="td"><p>It is required for the events and personalization plugins to function correctly. Provides core client ID handling a shared analytics initialization logic. When used on its own, you get stable visitor identification, but no event tracking or personalization.</p></td><td class="td"><p><code class="code">@sitecore-content-sdk/analytics-core</code></p></td></tr><tr><td class="td"><p><code class="code">eventsPlugin()</code></p></td><td class="td"><p>Adds the ability to track page view and/or custom events with the underlying client ID logic.</p></td><td class="td"><p><code class="code">@sitecore-content-sdk/events</code></p></td></tr><tr><td class="td"><p><code class="code">personalizeBrowserPlugin()</code> or <code class="code">personalizeServerPlugin()</code></p></td><td class="td"><p>Add support for personalization, enabled via the the personalization cookie, with optional web personalization. It relies on the base analytics plugin to handle visitor identification and cookie settings. The browser plugin should be used in client-side contexts, while the server plugin is suited for server components or a Next JS middleware/proxy context.</p></td><td class="td"><p><code class="code">@sitecore-content-sdk/personalize</code></p></td></tr></tbody></table>