> ## Documentation Index
> Fetch the complete documentation index at: https://dotnetdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PostHogConfig

> Represents the configuration for PostHog analytics integration.

## Definition

**Assembly:** Mintlify.Core.dll

**Namespace:** Mintlify.Core.Models.Integrations

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
Mintlify.Core.Models.Integrations.PostHogConfig
```

## Summary

Represents the configuration for PostHog analytics integration.

## Remarks

PostHog is an open-source product analytics platform that provides session
recording, feature flags, and product analytics. This configuration enables
automatic tracking of documentation events to your PostHog instance.

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

#### Syntax

```csharp theme={"dark"}
public PostHogConfig()
```

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ApiHost

Gets or sets the PostHog API host URL.

#### Syntax

```csharp theme={"dark"}
public string ApiHost { get; set; }
```

#### Property Value

Type: `string?`

#### Remarks

This is optional and only needed if you are self-hosting PostHog. If not
specified, events will be sent to the default PostHog cloud service at
[https://app.posthog.com](https://app.posthog.com). If you are self-hosting, specify the full URL
to your PostHog instance.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ApiKey

Gets or sets the PostHog project API key.

#### Syntax

```csharp theme={"dark"}
public string ApiKey { get; set; }
```

#### Property Value

Type: `string?`

#### Remarks

This is your PostHog project's API key, which typically starts with "phc\_".
You can find this key in your PostHog project settings. All documentation
events will be sent to the PostHog project associated with this API key.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> SessionRecording

Gets or sets whether to enable PostHog session recording.

#### Syntax

```csharp theme={"dark"}
public System.Nullable<bool> SessionRecording { get; set; }
```

#### Property Value

Type: `System.Nullable<bool>?`

#### Remarks

Session recordings are enabled by default when PostHog is configured. Set to false
to disable session recordings while keeping analytics enabled. You need to add
the URL for your docs website to PostHog's "Authorized domains for recordings"
before you can receive session recordings.

## Methods

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Equals <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name  | Type      | Description |
| ----- | --------- | ----------- |
| `obj` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Equals <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetHashCode <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetType <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> MemberwiseClone <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ReferenceEquals <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ToString <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`
