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

# OSM キャンペーンを閉じた後に画面がフリーズするのはなぜですか?

> On-site Messaging キャンペーンを閉じた後に Web ページがフリーズしていませんか? 閉じるボタンに必要な trackDismiss 関数と dismissMessage 関数を追加してください。

## 問題

On-site Messaging (OSM) キャンペーンを閉じた後、Web ページが一時的にフリーズします。

## 解決策

この問題を解決するには、OSM キャンペーンを閉じる際の閉じるボタンの **Settings** > **Styling** > **Custom Attributes** に、以下の関数が含まれていることを確認してください。

* MoeOsm.trackDismiss();
* MoeOsm.dismissMessage();

<img alt="Screenshot 2025-01-22 at 3.27.15 PM.png" src="https://mintcdn.com/moengage/UX7SFw6G5JwoHWFq/images/moengage_5ee5a9.png?fit=max&auto=format&n=UX7SFw6G5JwoHWFq&q=85&s=77844c5dbef6d6f0bd5b10f74495b952" width="1376" height="704" data-path="images/moengage_5ee5a9.png" />
