Usage Examples
URL Test
For how to create and configure a URL Test, refer to here.
Check the Integration Code
<!-- 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>Check the SDK Key
Refer to the document above and copy the key corresponding to App/Browser.
Complete the Code Block
<!-- 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.



Check the Anti-Flicker Code
<!-- 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.
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/4https://hackle.com/sURL/O/14https://hackle.com/product/detail.html?product_no=14
Configure the URL to match the module or link style your store uses.


Combine multiple URLs with OR conditions so that the intended URL can be matched.
Last updated