# การใช้งาน privacy notice javascript SDK

### Copy script จาก conzento website

* เข้าไปที่เมนู Consent management => Privacy=> Privacy notices
* เลือก Privacy notic ที่ต้องการนำไปใช้งาน
* ไปที่ Tab Javascript Popup
* Copy script จาก Javascript SDK property

### การนำ script ไปใช้งาน

* &#x20;กรณีใช้ privacy script ใน url ที่มี script ของ consent script อยู่แล้วสามารถใช้แค่ scirpt ในข่อง javascriptSDK without consent script

```
<script type="text/javascript"> $reddot.showPrivacy('{Identifier}', null, '15d20847-dfd4-4b1c-7f27-08da1dcce1c5'); </script>;
```

* &#x20;กรณีใช้ privacy script ใน url ที่ไม่มี script ของ consent script อยู่สามารถใช้ scirpt ในข่อง javascriptSDK without consent script

```
<script type="text/javascript" src="https://your-domain/v1/consent-managers/15d20847-dfd4-4b1c-7f27-08da1dcce1c5/reddot.consent.js"></script>; 
<script type="text/javascript"> $reddot.showPrivacy('{Identifier}', null, '15d20847-dfd4-4b1c-7f27-08da1dcce1c5'); </script>;
```

## **การนำ Privacy notice ไปใช้งานแบบ Iframe**

#### สามารถนำ url ของ privacy notice วางใน iframe src ได้ทันที ตามตัวอย่างด้านล่าง

```
<iframe src="https://your-domain/privacy/e6ceebb8-b32d-431f-df1e-08da4572e6fc/0" height="600px" width="100%" title="Privacy Notice"></iframe>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.reddot.co.th/privacy-notice-sdk/privacy-notice-javascript-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
