# Code JS

**Code JS** adalah halaman untuk mengambil JavaScript tracking code yang harus dipasang di website atau landing page kamu. Tracking code ini berfungsi untuk mengirimkan event seperti Visit, Click CTA, dan Submit Form ke Cekat Tracker.

#### **1. JavaScript Tracking Code**

* Tracking code ini harus ditempatkan di bagian **\<head>** website kamu.
* Penempatan yang benar memastikan semua event di halaman dapat terdeteksi dengan optimal.
* Instruksi pemasangan:
  * Buka file HTML atau template website kamu.
  * Tempatkan script **sebelum tag penutup `</head>`**.
  * Simpan perubahan dan deploy website kamu.

#### **2. Code Snippet**

* Salin script berikut dan paste ke website kamu.


---

# 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.cekat.ai/marketing/cekat-tracker-setting/code-js.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.
