SITE UNDER MAINTENANCE
Sorry for the inconvenience. To improve our service, we have to momentarily maintenance our site.
TIME UP
Please contact our Customer Support Service Thank you!
SCRIPTAFTERREGISTER
<script type="text/javascript">
function getCookie(name) {
const nameEQ = name + '=';
const ca = document.cookie.split(';');
for (let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
}
return null;
}
function deleteCookie(name) {
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
}
function generateUniqueString(length = 16) {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('set', 'autoConfig', 'false', '957600513084592');
const uniqueString = generateUniqueString();
const usertg = getCookie('tg-userd');
const emailtg = getCookie('tg-email').toLowerCase();
const phonetg = getCookie('tg-phone');
const fbptg = getCookie('_fbp');
const fbctg = getCookie('_fbc');
const country = 'id';
const payload = {
em: emailtg,
ph: phonetg,
extid: usertg,
fbp: fbptg,
fbc: fbctg,
dm: window.location.href,
eventID: uniqueString,
};
if(usertg){
fetch('https://kingdaxa.com/uhuy/', {
method: 'POST',
body: JSON.stringify(payload),
}).then(response => {
if(!response.ok){
throw new Error('Network Error');
}
return response.json();
}).then(data => {
if(data.event_received === 1){
fbq('init', '957600513084592', {em: emailtg, ph: phonetg, external_id: usertg, country: country});
fbq('track', 'CompleteRegistration', {}, {eventID: uniqueString});
}else{
fbq('init', '957600513084592', {em: emailtg, ph: phonetg, external_id: usertg, country: country});
fbq('track', 'CompleteRegistration', {}, {eventID: uniqueString});
}
});
}
deleteCookie('tg-userd');
deleteCookie('tg-email');
deleteCookie('tg-phone');
deleteCookie('tg-named');
</script>