> 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

## 1. URL Test

> 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).

{% 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>" %}

> This covers content similar to the document above. For details, refer to the document above.

```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="/files/CuNqTV4yrElddCIz7Gju" alt=""><figcaption></figcaption></figure> <figure><img src="/files/dcjgoG3ziClHAQuQZswu" alt=""><figcaption></figcaption></figure> <figure><img src="/files/5dMhTVwNXFJAddK4X8cN" 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="/files/op95lyHLBDtNiZtFt16g" alt=""><figcaption><p>URL OR condition</p></figcaption></figure> <figure><img src="/files/MrjpyfyVxD3J1x2IxREb" 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 dynamically by asking a question.

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

```
GET https://docs.hackle.io/en/cafe-24/example.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.
