---
title: Install and configure
slug: commerce-connect-15/docs/install-and-configure
docTags: 
createdAt: 2026-07-30T20:34:44.000Z
---

Describes how to configure Optimizely Graph for Commerce Connect

## Optimizely Graph for Commerce Connect

### Prerequisites

- [.NET 10](https://dotnet.microsoft.com/en-us/download/dotnet/10.0)
- [Optimizely Commerce Connect equal or greater than v15.0.0](https://world.optimizely.com/products/#b2c)

### Get started

1. Install `Optimizely.Graph.Commerce` from Optimizely Nuget package.
2. Add the following code snippet to `ConfigureServices` method in `Startup.cs`:

```csharp
services.AddCommerceGraph();
```

3. Add namespace.

```csharp
using Optimizely.Graph.Commerce;
```

4. Add Optimizely setting as the same level as Episerver in `appsetting.json`.

```json
"Optimizely": {
  "ContentGraph": {
    "GatewayAddress": "https://cg.optimizely.com",
    "AppKey": "{your-app-key}",
    "Secret": "{your-secret}",
    "SingleKey": "{your-single-key}",
    "AllowSendingLog": "true"
  }
}
```

5. Build the solution.
6. Prepare the database.
7. Run the site. The first time the site is ran the site executes data migration and the homepage displays when done.
8. Go to `GraphQLAdmin` to clear all previous synced data. Go to the Optimizely Graph content synchronization job to start syncing data. Go to `GraphiQL` to write queries to fetch data.
