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

# Amplitude 連携

> Turnint AI のセッションイベントを Amplitude に送信する方法

セッションイベントを [Amplitude](https://amplitude.com) の `track` メソッドで自動送信します。

## 検出条件

`window.amplitude` がオブジェクトで、`amplitude.track` が関数として存在する場合に検出されます。

## 送信方法

```javascript theme={null}
amplitude.track("turnint_started", { type: "started" });
```

## ヘッドスクリプト設定

ポータルの **ヘッドスクリプト** に以下を貼り付けてください。`YOUR_API_KEY` はご自身の API キーに置き換えてください。

```html theme={null}
<script src="https://cdn.amplitude.com/libs/analytics-browser-2.11.1-min.js.gz"></script>
<script>
  window.amplitude.init("YOUR_API_KEY");
</script>
```
