> For the complete documentation index, see [llms.txt](https://docs.hackle.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hackle.io/en/cafe-24/example.md).

# Usage Examples

## URL Test

{% hint style="success" %}
For how to create and configure a URL Test, refer to [here](https://docs.hackle.io/ab-test/url-test/steps-of-an-url-test).
{% endhint %}

{% hint style="info" %}
If you integrated with Hackle through the store app, skip directly to Step (4).

For store apps, we strongly recommend using the [**Bridge Code**](https://docs.hackle.io/cafe-24/integration/cafe24-bridge-integration).
{% endhint %}

{% stepper %}
{% step %}
**Check the Integration Code**

{% embed url="<https://docs.hackle.io/ab-test/url-test/url-test-integration>" %}

```html
<!-- Add inside the existing head -->
<script src="https://cdn2.hackle.io/npm/@hackler/javascript-sdk@11.55.2/lib/index.browser.umd.min.js"></script>
<script>
window.hackleClient = Hackle.createInstance("YOUR_BROWSER_SDK_KEY");
</script>
```

{% endstep %}

{% step %}
**Check the SDK Key**

{% embed url="<https://docs.hackle.io/development-guide/sdk/get-your-key>" %}

Refer to the document above and copy the key corresponding to App/Browser.
{% endstep %}

{% step %}
**Complete the Code Block**

```html
<!-- Add inside the existing head -->
<script src="https://cdn2.hackle.io/npm/@hackler/javascript-sdk@11.55.2/lib/index.browser.umd.min.js"></script>
<script>
window.hackleClient = Hackle.createInstance("Enter the copied key here");
</script>
```

Insert the code above at the following location.

<div><figure><img src="https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-1d2445facd14056020daf3eb6ebc407cfe32396d%2Fimage%20(3).png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-901e7a5e0d60717c932be57f8d84a2449a90a0e2%2Fimage%20(4).png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-7cc46cf8dd12ca9e35f908e52a5a318b7adc3a8a%2Fimage%20(5).png?alt=media" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Check the Anti-Flicker Code**

```html
<!-- Add at the top of the SDK integration code in the existing head  -->
<style>
.hackle_init_hide {
  opacity: 0 !important;
}
</style>
<script>
(function(e){var n="hackle_init_hide";document.documentElement.className+=n;var t=function(){document.documentElement.className=document.documentElement.className.replace(RegExp(" ?"+n),"");window.removeEventListener("hackle-initialize-done",t)};setTimeout(t,e);window.addEventListener("hackle-initialize-done",t)})(4000);
</script>
```

Insert the code above at the same location as described in step 3.
{% endstep %}

{% step %}
**Check the URL of the Product Targeted by the URL Test**

A single product can have multiple URLs.

For example, the URLs for a product with `product_no` 14 can vary as follows:

* `https://hackle.com/product/%ED%94%84%EB%A0%88%EC%8B%9C/14/category/1/display/4`
* `https://hackle.com/sURL/O/14`
* `https://hackle.com/product/detail.html?product_no=14`

Configure the URL to match the module or link style your store uses.

<div><figure><img src="https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-33b6332528b780becbb89e0e1dc10e79f7790a75%2Fimage%20(8).png?alt=media" alt=""><figcaption><p>URL OR condition</p></figcaption></figure> <figure><img src="https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-c225e30fb9431b634e8bc6b57189b9371ad15261%2Fimage%20(9).png?alt=media" alt=""><figcaption><p>URL matching condition</p></figcaption></figure></div>

Combine multiple URLs with OR conditions so that the intended URL can be matched.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hackle.io/en/cafe-24/example.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
