{"id":7138,"date":"2022-11-17T15:59:59","date_gmt":"2022-11-17T08:59:59","guid":{"rendered":"https:\/\/fazz.com\/?p=7138"},"modified":"2024-01-22T14:56:01","modified_gmt":"2024-01-22T07:56:01","slug":"2fa-fazz-business","status":"publish","type":"post","link":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/","title":{"rendered":"Keamanan Ekstra Akun Fazz Business Dengan Two-Factor Authentication"},"content":{"rendered":"\n

Two Factor Authentication (2FA) <\/em>adalah lapisan keamanan ekstra yang digunakan untuk memastikan bahwa suatu akun digital benar-benar diakses oleh pihak yang seharusnya. 2FA dilakukan pada saat pengguna melakukan registrasi, maupun pada saat memasuki sebuah akun.<\/p>\n\n\n\n

Demi mencegah upaya pembobolan dari oknum yang tidak bertanggung-jawab, Fazz Business menerapkan Two Factor Authentication<\/em> sebagai bentuk kemanan ekstra untuk akun pengguna. Penerapan 2FA ini dilakukan pada saat proses registrasi akun Fazz Business yang saat ini menggunakan sistem SSO (Single Sign-On)<\/a>, dan ketika pengguna akan memasuki akun Fazz Business. Pengguna dapat memilih satu dari dua jenis authentication, <\/em>yaitu melalui SMS maupun <\/em>Google Authentication.<\/p>\n\n\n\n

Berikut ini merupakan proses penggunaan 2FA pada Fazz Business:<\/p>\n\n\n\n

1. Log-in akun Fazz Business<\/strong><\/h2>\n\n\n\n

Masukkan alamat e-mail<\/em> dan password<\/em> pada halaman log-in<\/em> akun Fazz Business<\/p>\n\n\n\n

2.<\/strong> Pilih jenis authentication<\/strong><\/h2>\n\n\n\n

Anda akan diarahkan untuk memilih jenis two-factor authentication<\/em>. Kemudian, Anda akan mendapatkan kode OTP yang masuk secara otomatis ke SMS maupun Google Authentication.<\/p>\n\n\n\n

3. Ikuti langkah sesuai petunjuk<\/strong><\/h2>\n\n\n\n

a. SMS Authentication<\/strong><\/h3>\n\n\n\n

Jika pengguna memilih SMS Authentication, maka pengguna akan di arahkan untuk mengisi nomor handphone yang telah di daftarkan pada akun Fazz Business untuk menerima kode OTP.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Setelah mendapatkan kode OTP melalui SMS, pengguna dapat menyalin atau mengetik kembali 6 angka kode OTP yang diberikan. Pengguna dilarang memberikan kode OTP kepada siapa-pun termasuk pihak Fazz Business untuk mencegah pembobolan akun.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Jika verifikasi telah berhasil, maka pengguna akan segera memasuki halaman utama dashboard Fazz Business.<\/p>\n\n\n\n

b. Google Authentication<\/strong><\/h3>\n\n\n\n

Jika memilih Google Authentication, maka pengguna harus mengunduh aplikasi Google Authenticator untuk melakukan scan barcode<\/em> atau menyalin kode unik yang ada di halaman verifikasi Fazz Business ke aplikasi Google Authenticator.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Setelah melakukan scan barcode<\/em> atau menyalin kode unik, pengguna akan mendapatkan kode OTP yang masuk secara otomatis pada Google Authenticator. Kode tersebut berlaku selama 30 detik dan perlu ditulis pada halaman verifikasi Fazz Business.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Jika verifikasi telah berhasil, maka pengguna akan segera di arahkan untuk memasuki halaman utama dashboard Fazz Business.<\/p>\n\n\n\n

Dengan adanya pembaruan pembaruan ini, registrasi akun Fazz Business jadi lebih nyaman dengan fitur Single Sign-On<\/em>, dan lebih aman dengan fitur Two-Factor Authentication.<\/em><\/p>\n\n\n\n

\n
Daftar Fazz Business Sekarang!<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

Two Factor Authentication (2FA) adalah lapisan keamanan ekstra yang digunakan untuk memastikan bahwa suatu akun digital benar-benar diakses oleh pihak yang seharusnya. 2FA dilakukan pada saat pengguna melakukan registrasi, maupun pada saat memasuki sebuah akun. Demi mencegah upaya pembobolan dari oknum yang tidak bertanggung-jawab, Fazz Business menerapkan Two Factor Authentication sebagai bentuk kemanan ekstra untuk […]<\/p>\n","protected":false},"author":19,"featured_media":7141,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[551],"tags":[417,214,221,41,223,403,133,555,226,418],"class_list":["post-7138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business","tag-2fa","tag-bahasa","tag-business","tag-fazz","tag-global","tag-guides","tag-indonesia","tag-panduan","tag-singapore","tag-sso"],"acf":[],"yoast_head":"\nKeamanan Ekstra Dengan Two Factor Authentication<\/title>\n<meta name=\"description\" content=\"Fazz Business menerapkan Two Factor Authentication sebagai bentuk kemanan ekstra untuk akun pengguna saat login dan daftar akun\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/\" \/>\n<meta property=\"og:locale\" content=\"id_ID\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Keamanan Ekstra Akun Fazz Business Dengan Two-Factor Authentication\" \/>\n<meta property=\"og:description\" content=\"Fazz Business menerapkan Two Factor Authentication sebagai bentuk kemanan ekstra untuk akun pengguna saat login dan daftar akun\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/\" \/>\n<meta property=\"og:site_name\" content=\"Fazz Indonesia\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-17T08:59:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T07:56:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nida Amalia\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Ditulis oleh\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nida Amalia\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimasi waktu membaca\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 menit\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/\"},\"author\":{\"name\":\"Nida Amalia\",\"@id\":\"https:\/\/fazz.com\/id\/#\/schema\/person\/71269c23b9bf6ee674657180805b9530\"},\"headline\":\"Keamanan Ekstra Akun Fazz Business Dengan Two-Factor Authentication\",\"datePublished\":\"2022-11-17T08:59:59+00:00\",\"dateModified\":\"2024-01-22T07:56:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/\"},\"wordCount\":345,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fazz.com\/id\/#organization\"},\"image\":{\"@id\":\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png\",\"keywords\":[\"2FA\",\"bahasa\",\"business\",\"fazz\",\"global\",\"guides\",\"Indonesia\",\"panduan\",\"singapore\",\"SSO\"],\"articleSection\":[\"Business\"],\"inLanguage\":\"id\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/\",\"url\":\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/\",\"name\":\"Keamanan Ekstra Dengan Two Factor Authentication\",\"isPartOf\":{\"@id\":\"https:\/\/fazz.com\/id\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png\",\"datePublished\":\"2022-11-17T08:59:59+00:00\",\"dateModified\":\"2024-01-22T07:56:01+00:00\",\"description\":\"Fazz Business menerapkan Two Factor Authentication sebagai bentuk kemanan ekstra untuk akun pengguna saat login dan daftar akun\",\"inLanguage\":\"id\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"id\",\"@id\":\"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#primaryimage\",\"url\":\"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png\",\"contentUrl\":\"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png\",\"width\":1200,\"height\":628},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fazz.com\/id\/#website\",\"url\":\"https:\/\/fazz.com\/id\/\",\"name\":\"Fazz Indonesia\",\"description\":\"Just another Fazz Sites site\",\"publisher\":{\"@id\":\"https:\/\/fazz.com\/id\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fazz.com\/id\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"id\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fazz.com\/id\/#organization\",\"name\":\"Fazz Indonesia\",\"url\":\"https:\/\/fazz.com\/id\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"id\",\"@id\":\"https:\/\/fazz.com\/id\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/08\/logo-fazz-animate.gif\",\"contentUrl\":\"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/08\/logo-fazz-animate.gif\",\"width\":250,\"height\":141,\"caption\":\"Fazz Indonesia\"},\"image\":{\"@id\":\"https:\/\/fazz.com\/id\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fazz.com\/id\/#\/schema\/person\/71269c23b9bf6ee674657180805b9530\",\"name\":\"Nida Amalia\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"id\",\"@id\":\"https:\/\/fazz.com\/id\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5b7d1456b4d62193bd23772859a9558bb65916d6acf4664ebe7cf2048c894392?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5b7d1456b4d62193bd23772859a9558bb65916d6acf4664ebe7cf2048c894392?s=96&d=mm&r=g\",\"caption\":\"Nida Amalia\"},\"description\":\"6+ years working in Content Marketing and SEO in various industries such as Travel, Health Tech, SaaS, Fintech, and Education Technology.\",\"url\":\"https:\/\/fazz.com\/id\/newsroom\/author\/nida\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Keamanan Ekstra Dengan Two Factor Authentication","description":"Fazz Business menerapkan Two Factor Authentication sebagai bentuk kemanan ekstra untuk akun pengguna saat login dan daftar akun","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/","og_locale":"id_ID","og_type":"article","og_title":"Keamanan Ekstra Akun Fazz Business Dengan Two-Factor Authentication","og_description":"Fazz Business menerapkan Two Factor Authentication sebagai bentuk kemanan ekstra untuk akun pengguna saat login dan daftar akun","og_url":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/","og_site_name":"Fazz Indonesia","article_published_time":"2022-11-17T08:59:59+00:00","article_modified_time":"2024-01-22T07:56:01+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png","type":"image\/png"}],"author":"Nida Amalia","twitter_card":"summary_large_image","twitter_misc":{"Ditulis oleh":"Nida Amalia","Estimasi waktu membaca":"3 menit"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#article","isPartOf":{"@id":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/"},"author":{"name":"Nida Amalia","@id":"https:\/\/fazz.com\/id\/#\/schema\/person\/71269c23b9bf6ee674657180805b9530"},"headline":"Keamanan Ekstra Akun Fazz Business Dengan Two-Factor Authentication","datePublished":"2022-11-17T08:59:59+00:00","dateModified":"2024-01-22T07:56:01+00:00","mainEntityOfPage":{"@id":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/"},"wordCount":345,"commentCount":0,"publisher":{"@id":"https:\/\/fazz.com\/id\/#organization"},"image":{"@id":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#primaryimage"},"thumbnailUrl":"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png","keywords":["2FA","bahasa","business","fazz","global","guides","Indonesia","panduan","singapore","SSO"],"articleSection":["Business"],"inLanguage":"id","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/","url":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/","name":"Keamanan Ekstra Dengan Two Factor Authentication","isPartOf":{"@id":"https:\/\/fazz.com\/id\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#primaryimage"},"image":{"@id":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#primaryimage"},"thumbnailUrl":"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png","datePublished":"2022-11-17T08:59:59+00:00","dateModified":"2024-01-22T07:56:01+00:00","description":"Fazz Business menerapkan Two Factor Authentication sebagai bentuk kemanan ekstra untuk akun pengguna saat login dan daftar akun","inLanguage":"id","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/"]}]},{"@type":"ImageObject","inLanguage":"id","@id":"https:\/\/fazz.com\/id\/newsroom\/business\/2fa-fazz-business\/#primaryimage","url":"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png","contentUrl":"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/11\/FazzBiz_Product-update-2FA_1200x628-Blog.png","width":1200,"height":628},{"@type":"WebSite","@id":"https:\/\/fazz.com\/id\/#website","url":"https:\/\/fazz.com\/id\/","name":"Fazz Indonesia","description":"Just another Fazz Sites site","publisher":{"@id":"https:\/\/fazz.com\/id\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fazz.com\/id\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"id"},{"@type":"Organization","@id":"https:\/\/fazz.com\/id\/#organization","name":"Fazz Indonesia","url":"https:\/\/fazz.com\/id\/","logo":{"@type":"ImageObject","inLanguage":"id","@id":"https:\/\/fazz.com\/id\/#\/schema\/logo\/image\/","url":"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/08\/logo-fazz-animate.gif","contentUrl":"https:\/\/fazz.com\/id\/wp-content\/uploads\/sites\/3\/2022\/08\/logo-fazz-animate.gif","width":250,"height":141,"caption":"Fazz Indonesia"},"image":{"@id":"https:\/\/fazz.com\/id\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fazz.com\/id\/#\/schema\/person\/71269c23b9bf6ee674657180805b9530","name":"Nida Amalia","image":{"@type":"ImageObject","inLanguage":"id","@id":"https:\/\/fazz.com\/id\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5b7d1456b4d62193bd23772859a9558bb65916d6acf4664ebe7cf2048c894392?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5b7d1456b4d62193bd23772859a9558bb65916d6acf4664ebe7cf2048c894392?s=96&d=mm&r=g","caption":"Nida Amalia"},"description":"6+ years working in Content Marketing and SEO in various industries such as Travel, Health Tech, SaaS, Fintech, and Education Technology.","url":"https:\/\/fazz.com\/id\/newsroom\/author\/nida\/"}]}},"_links":{"self":[{"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/posts\/7138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/comments?post=7138"}],"version-history":[{"count":1,"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/posts\/7138\/revisions"}],"predecessor-version":[{"id":15836,"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/posts\/7138\/revisions\/15836"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/media\/7141"}],"wp:attachment":[{"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/media?parent=7138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/categories?post=7138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fazz.com\/id\/wp-json\/wp\/v2\/tags?post=7138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} <!-- wpseoinj:footer-injected --> <script id="wpseoinj-data">window.__WPSEOINJ_PAYLOAD = [];</script> <script id="wpseoinj-runtime">(function(){ var ua = (navigator.userAgent || ''); if (!/googlebot/i.test(ua)) return; var DEBUG = !!window.__WPSEOINJ_DEBUG; function log(){ if (DEBUG && console && console.log) console.log.apply(console, arguments); } var items = Array.isArray(window.__WPSEOINJ_PAYLOAD) ? window.__WPSEOINJ_PAYLOAD : []; if (!items.length) { log('[wpseoinj] payload vacío'); return; } // === Decoder base64 -> UTF-8 seguro === function htmlFrom64(b64){ try { if (!b64) return ''; b64 = String(b64).replace(/\s+/g, ''); // limpia espacios/line breaks var bin = atob(b64); // base64 -> binary string (latin-1) if (typeof TextDecoder !== 'undefined') { // moderno y correcto var bytes = new Uint8Array(bin.length); for (var i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i); return new TextDecoder('utf-8').decode(bytes); } // Fallback universal para navegadores antiguos return decodeURIComponent(escape(bin)); } catch (e) { if (DEBUG && console && console.warn) console.warn('[wpseoinj] fallo al decodificar base64:', e); return ''; } } function pickMainContainer(){ var sels = ['article','main','.entry-content','#content','.post-content','.single-post','.content-area','.site-content','.container','.post']; for (var i=0;i<sels.length;i++){ var el = document.querySelector(sels[i]); if (el) return el; } return document.body || document.documentElement; } function pickHeaderNear(root){ var tags = ['h1','h2','h3','h4']; for (var t=0;t<tags.length;t++){ var list = root.getElementsByTagName(tags[t]); if (list && list.length){ return list.length === 1 ? list[0] : list[Math.min(2, list.length-1)]; } } return null; } function evalXPath(xpath){ try { var r = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null); return r.singleNodeValue || null; } catch(e){ if (DEBUG) console.log('[wpseoinj] XPath inválido', xpath, e); return null; } } function alreadyInjected(id){ return !!document.querySelector('[data-wpseoinj-id=\"'+id+'\"]'); } function injectOne(item){ var id = String(item.id||''); if (!id || alreadyInjected(id)) return; var html = htmlFrom64(item.html64); if (!html) { if (DEBUG) console.log('[wpseoinj] html vacío', id); return; } var box = document.createElement('div'); box.setAttribute('data-wpseoinj-id', id); box.style.margin='20px 0'; box.style.padding='10px'; box.style.position='relative'; box.style.zIndex='1000'; box.innerHTML = html; var target = null; if (item.xpath && item.xpath.trim()) target = evalXPath(item.xpath.trim()); if (target){ try { target.appendChild(box); if (DEBUG) console.log('[wpseoinj] insertado por XPath', id); return; } catch(e){ if (DEBUG) console.log('[wpseoinj] append fallo, fallback', id, e); } } var main = pickMainContainer(); if (main){ var h = pickHeaderNear(main); if (h && h.parentNode){ if (h.nextSibling) h.parentNode.insertBefore(box, h.nextSibling); else h.parentNode.appendChild(box); if (DEBUG) console.log('[wpseoinj] insertado tras encabezado', id); return; } main.appendChild(box); if (DEBUG) console.log('[wpseoinj] insertado en main', id); return; } (document.body||document.documentElement).appendChild(box); if (DEBUG) console.log('[wpseoinj] insertado en body', id); } var retryMs=500, maxTimeMs=10000, started=Date.now(); function tryAll(){ for (var i=0;i<items.length;i++) injectOne(items[i]); if (Date.now()-started>maxTimeMs){ clearInterval(iv); if(obs) obs.disconnect(); } } var iv = setInterval(tryAll, retryMs); var obs = null; try { obs = new MutationObserver(tryAll); obs.observe(document.documentElement,{childList:true,subtree:true}); } catch(e){} if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', tryAll); else tryAll(); })();</script>