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

# Kameleoon.API.Events

> ターゲティングのためにカスタムイベントを発生させる Kameleoon.API.Events.trigger メソッドのリファレンスです。

このモジュールは、実験やパーソナライゼーションのターゲティング用にカスタムイベントを発生させます。標準の DOM イベントについては、[Activation API イベントのドキュメント](https://docs.kameleoon.com/ja/developer-docs/apis/activation-api-js/api-reference/activation-api-events.md)を参照してください。

## trigger

`trigger()` メソッドは、セグメントをターゲットにするためのカスタムイベントをトリガーします。

```javascript theme={null}
Kameleoon.API.Events.trigger("myTriggerEventName");
```

**引数**

| 名前 | 型 | 説明 |
| - | - | - |
| eventName | String | トリガーするイベントの名前。このフィールドは必須です。 |
