{"id":9130,"date":"2025-09-30T03:07:35","date_gmt":"2025-09-30T03:07:35","guid":{"rendered":"https:\/\/hiluckev.com\/?page_id=9130"},"modified":"2026-02-27T01:48:12","modified_gmt":"2026-02-27T01:48:12","slug":"%d8%a7%d8%b0%d9%87%d8%a8-%d8%a5%d9%84%d9%89-%d9%88%d8%a7%d8%aa%d8%b3%d8%a7%d8%a8","status":"publish","type":"page","link":"https:\/\/hiluckev.com\/ar\/go-whatsapp\/","title":{"rendered":"\u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0648\u0627\u062a\u0633\u0627\u0628"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"9130\" class=\"elementor elementor-9130\" data-elementor-post-type=\"page\"> \t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bdb829a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bdb829a\" data-element_type=\"section\" data-e-type=\"section\"> \t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\"> \t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-18a0593\" data-id=\"18a0593\" data-element_type=\"column\" data-e-type=\"column\"> \t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\"> \t\t\t\t\t\t<div class=\"elementor-element elementor-element-d275204 elementor-widget elementor-widget-html\" data-id=\"d275204\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\"> \t\t\t\t\t<style>  \/* \u4fdd\u6301\u539f\u6709\u7684\u52a0\u8f7d\u52a8\u753b\u6837\u5f0f *\/  @keyframes loading { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }  .container { text-align: center; padding: 50px 0; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif; }  .connecting-text-animated { font-size: 18px; color: #333; animation: loading 1.5s infinite; margin-bottom: 10px; }  .whatsapp-icon-style { font-size: 24px; color: #25D366; vertical-align: middle; margin-right: 8px; }  .error-message { color: #ff4444; font-size: 14px; margin-top: 15px; display: none; line-height: 1.6; }  .manual-link { color: #25D366; text-decoration: underline; font-weight: bold; cursor: pointer; }  <\/style>    <div class=\"container\">      <p class=\"connecting-text-animated\" id=\"connectingText\">          <span class=\"whatsapp-icon-style\">\ud83d\udcac<\/span> Connecting you to WhatsApp, please wait...      <\/p>      <p class=\"error-message\" id=\"errorMsg\"><\/p>  <\/div>    <script>\r\n\/**\r\n * HiLuck WhatsApp Redirect \u6700\u7ec8\u4f18\u5316\u7248 (2026.02)\r\n * \u7279\u70b9\uff1a\u79fb\u9664 reCAPTCHA, GTM \u5f52\u56e0\u56de\u8c03, 5\u5206\u949f\u9632\u91cd\u590d\u9501\r\n *\/\r\nfunction initWhatsAppRedirect() {\r\n    try {\r\n        \/\/ --- 1. \u57fa\u7840\u914d\u7f6e ---\r\n        const GOOGLE_SCRIPT_URL = 'https:\/\/script.google.com\/macros\/s\/AKfycbwEsZRG1EvdJBWynxzxn0Qrd3HIqbz1J05h9zoJZjrBatswL2G02wcTtxeOqfk5xxrQ\/exec';\r\n        const MY_SECRET = 'HiLuck-WhatsApp-Redirect-2025';\r\n        const WHATSAPP_NUMBER = \"8613637898782\";\r\n\r\n        \/\/ --- 2. \u8f85\u52a9\u51fd\u6570 ---\r\n        function getGclid() {\r\n            const urlParams = new URLSearchParams(window.location.search);\r\n            let gclid = urlParams.get('gclid');\r\n            if (gclid) return gclid;\r\n            const match = document.cookie.match(\/(^| )gclid=([^;]+)\/);\r\n            return match ? match[2] : null;\r\n        }\r\n\r\n        function getCleanReferrer() {\r\n            if (!document.referrer) return null;\r\n            try {\r\n                const ref = new URL(document.referrer);\r\n                return ref.hostname.includes('hiluckev.com') ? (ref.origin + ref.pathname) : null;\r\n            } catch (e) { return null; }\r\n        }\r\n\r\n        \/\/ --- 3. \u521d\u59cb\u5316\u53c2\u6570 ---\r\n        const gclid = getGclid() || 'N\/A';\r\n        const simpleId = Date.now().toString().slice(-10);\r\n        const uniqueId = simpleId + '-' + Math.random().toString(36).substr(2, 5);\r\n        \r\n        \/\/ \u6784\u5efa\u6d88\u606f\u5185\u5bb9\r\n        let refUrl = getCleanReferrer();\r\n        let finalMessage = (refUrl ? refUrl + \" \" : \"\") + \"Hello, I am interested in your electric vehicles. [Inquiry ID: \" + simpleId + \"]\";\r\n        const whatsappLink = `https:\/\/wa.me\/${WHATSAPP_NUMBER}?text=${encodeURIComponent(finalMessage)}`;\r\n\r\n        \/\/ --- 4. \u8df3\u8f6c\u51fd\u6570\u5b9a\u4e49 ---\r\n        let hasRedirected = false;\r\n        function doRedirect(reason) {\r\n            if (hasRedirected) return;\r\n            hasRedirected = true;\r\n            console.log('Redirecting to WhatsApp. Reason:', reason);\r\n            window.location.replace(whatsappLink);\r\n        }\r\n\r\n        \/\/ --- 5. \u9632\u91cd\u590d\u903b\u8f91 (\u9488\u5bf9 5 \u5206\u949f\u5185\u540c\u4e00 GCLID) ---\r\n        const lastGclid = localStorage.getItem('last_wa_gclid');\r\n        const lastTime = localStorage.getItem('last_wa_time');\r\n        const isDuplicate = (lastGclid === gclid && gclid !== 'N\/A' && (Date.now() - lastTime < 300000));\r\n\r\n        if (isDuplicate) {\r\n            console.warn('Duplicate click detected within 5 mins. Skipping logs.');\r\n            doRedirect('Duplicate bypass');\r\n            return;\r\n        }\r\n\r\n        \/\/ --- 6. \u8bb0\u5f55\u5f53\u524d\u70b9\u51fb\u72b6\u6001 ---\r\n        localStorage.setItem('last_wa_gclid', gclid);\r\n        localStorage.setItem('last_wa_time', Date.now());\r\n\r\n        \/\/ --- 7. \u6267\u884c\u6570\u636e\u63a8\u9001\u4e0e\u5f52\u56e0 ---\r\n        \r\n        \/\/ A. Google Sheet \u63a8\u9001 (\u4f7f\u7528 Beacon \u4e0d\u963b\u585e)\r\n        if (navigator.sendBeacon) {\r\n            navigator.sendBeacon(GOOGLE_SCRIPT_URL, JSON.stringify({\r\n                gclid: gclid,\r\n                simpleId: uniqueId,\r\n                secret: MY_SECRET\r\n            }));\r\n        }\r\n\r\n        \/\/ B. GTM \u5f52\u56e0\u63a8\u9001 (\u6838\u5fc3\uff1a\u5229\u7528 eventCallback \u786e\u4fdd\u4fe1\u53f7\u53d1\u51fa)\r\n        window.dataLayer = window.dataLayer || [];\r\n        window.dataLayer.push({\r\n            'event': 'whatsapp_click_event',\r\n            'simpleId': uniqueId,\r\n            'gclid_value': gclid,\r\n            'eventCallback': function() {\r\n                doRedirect('GTM Callback Success');\r\n            },\r\n            'eventTimeout': 800 \/\/ \u5982\u679c GTM 800ms \u6ca1\u54cd\u5e94\uff0c\u5f3a\u5236\u8df3\r\n        });\r\n\r\n        \/\/ C. \u4fdd\u5e95\u5b9a\u65f6\u5668 (\u9488\u5bf9\u6ca1\u6709 GTM \u7684\u73af\u5883)\r\n        setTimeout(() => doRedirect('Safety Timeout'), 1200);\r\n\r\n        \/\/ --- 8. \u9519\u8bef\u5904\u7406\u5c55\u793a ---\r\n        setTimeout(function() {\r\n            if (!document.hidden && !hasRedirected) {\r\n                const errorMsg = document.getElementById('errorMsg');\r\n                const connectingText = document.getElementById('connectingText');\r\n                if (connectingText) connectingText.style.display = 'none';\r\n                if (errorMsg) {\r\n                    errorMsg.style.display = 'block';\r\n                    errorMsg.innerHTML = 'Redirect failed? <a class=\"manual-link\" href=\"' + whatsappLink + '\">Click here to open WhatsApp manually<\/a>';\r\n                }\r\n            }\r\n        }, 2000);\r\n\r\n    } catch (error) {\r\n        console.error('Critical Error:', error);\r\n        window.location.replace(`https:\/\/wa.me\/8613637898782`);\r\n    }\r\n}\r\n\r\n\/\/ \u542f\u52a8\u6267\u884c\r\nif (document.readyState === 'loading') {\r\n    document.addEventListener('DOMContentLoaded', initWhatsAppRedirect);\r\n} else {\r\n    initWhatsAppRedirect();\r\n}\r\n<\/script>\t\t\t\t<\/div> \t\t\t\t\t<\/div> \t\t<\/div> \t\t\t\t\t<\/div> \t\t<\/section> \t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>\ud83d\udcac Connecting you to WhatsApp, please wait&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_theme","meta":{"footnotes":""},"class_list":["post-9130","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Connecting to WhatsApp - HiLUCK<\/title>\n<meta name=\"robots\" content=\"noindex, nofollow\" \/>\n<meta property=\"og:locale\" content=\"ar_AR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Connecting to WhatsApp - HiLUCK\" \/>\n<meta property=\"og:description\" content=\"\ud83d\udcac Connecting you to WhatsApp, please wait&#8230;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hiluckev.com\/ar\/\u0627\u0630\u0647\u0628-\u0625\u0644\u0649-\u0648\u0627\u062a\u0633\u0627\u0628\/\" \/>\n<meta property=\"og:site_name\" content=\"HiLUCK\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-27T01:48:12+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0648\u0642\u062a \u0627\u0644\u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0645\u064f\u0642\u062f\u0651\u0631\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 \u062f\u0642\u0627\u0626\u0642\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hiluckev.com\\\/go-whatsapp\\\/\",\"url\":\"https:\\\/\\\/hiluckev.com\\\/go-whatsapp\\\/\",\"name\":\"Connecting to WhatsApp - HiLUCK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hiluckev.com\\\/#website\"},\"datePublished\":\"2025-09-30T03:07:35+00:00\",\"dateModified\":\"2026-02-27T01:48:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hiluckev.com\\\/go-whatsapp\\\/#breadcrumb\"},\"inLanguage\":\"ar\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hiluckev.com\\\/go-whatsapp\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hiluckev.com\\\/go-whatsapp\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hiluckev.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connecting to WhatsApp\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hiluckev.com\\\/#website\",\"url\":\"https:\\\/\\\/hiluckev.com\\\/\",\"name\":\"HiLUCK\",\"description\":\"Your Trusted Partner in Global EV Sourcing\",\"publisher\":{\"@id\":\"https:\\\/\\\/hiluckev.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hiluckev.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ar\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hiluckev.com\\\/#organization\",\"name\":\"HILUCK\",\"url\":\"https:\\\/\\\/hiluckev.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ar\",\"@id\":\"https:\\\/\\\/hiluckev.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hiluckev.com\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/cropped-RUNOOB-HILUCK-LOGO.png\",\"contentUrl\":\"https:\\\/\\\/hiluckev.com\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/cropped-RUNOOB-HILUCK-LOGO.png\",\"width\":512,\"height\":512,\"caption\":\"HILUCK\"},\"image\":{\"@id\":\"https:\\\/\\\/hiluckev.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0648\u0627\u062a\u0633\u0627\u0628 - HiLUCK","robots":{"index":"noindex","follow":"nofollow"},"og_locale":"ar_AR","og_type":"article","og_title":"Connecting to WhatsApp - HiLUCK","og_description":"\ud83d\udcac Connecting you to WhatsApp, please wait&#8230;","og_url":"https:\/\/hiluckev.com\/ar\/\u0627\u0630\u0647\u0628-\u0625\u0644\u0649-\u0648\u0627\u062a\u0633\u0627\u0628\/","og_site_name":"HiLUCK","article_modified_time":"2026-02-27T01:48:12+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u0648\u0642\u062a \u0627\u0644\u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0645\u064f\u0642\u062f\u0651\u0631":"3 \u062f\u0642\u0627\u0626\u0642"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/hiluckev.com\/go-whatsapp\/","url":"https:\/\/hiluckev.com\/go-whatsapp\/","name":"\u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0648\u0627\u062a\u0633\u0627\u0628 - HiLUCK","isPartOf":{"@id":"https:\/\/hiluckev.com\/#website"},"datePublished":"2025-09-30T03:07:35+00:00","dateModified":"2026-02-27T01:48:12+00:00","breadcrumb":{"@id":"https:\/\/hiluckev.com\/go-whatsapp\/#breadcrumb"},"inLanguage":"ar","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hiluckev.com\/go-whatsapp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hiluckev.com\/go-whatsapp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hiluckev.com\/"},{"@type":"ListItem","position":2,"name":"Connecting to WhatsApp"}]},{"@type":"WebSite","@id":"https:\/\/hiluckev.com\/#website","url":"https:\/\/hiluckev.com\/","name":"\u0645\u0631\u062d\u0628\u064b\u0627 \u0628\u0643","description":"\u0634\u0631\u064a\u0643\u0643 \u0627\u0644\u0645\u0648\u062b\u0648\u0642 \u0641\u064a \u062a\u0648\u0631\u064a\u062f \u0627\u0644\u0633\u064a\u0627\u0631\u0627\u062a \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a\u0629 \u0627\u0644\u0639\u0627\u0644\u0645\u064a\u0629","publisher":{"@id":"https:\/\/hiluckev.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hiluckev.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ar"},{"@type":"Organization","@id":"https:\/\/hiluckev.com\/#organization","name":"\u0647\u064a\u0644\u0643","url":"https:\/\/hiluckev.com\/","logo":{"@type":"ImageObject","inLanguage":"ar","@id":"https:\/\/hiluckev.com\/#\/schema\/logo\/image\/","url":"https:\/\/hiluckev.com\/wp-content\/uploads\/2025\/07\/cropped-RUNOOB-HILUCK-LOGO.png","contentUrl":"https:\/\/hiluckev.com\/wp-content\/uploads\/2025\/07\/cropped-RUNOOB-HILUCK-LOGO.png","width":512,"height":512,"caption":"HILUCK"},"image":{"@id":"https:\/\/hiluckev.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/hiluckev.com\/ar\/wp-json\/wp\/v2\/pages\/9130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hiluckev.com\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hiluckev.com\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hiluckev.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hiluckev.com\/ar\/wp-json\/wp\/v2\/comments?post=9130"}],"version-history":[{"count":9,"href":"https:\/\/hiluckev.com\/ar\/wp-json\/wp\/v2\/pages\/9130\/revisions"}],"predecessor-version":[{"id":16042,"href":"https:\/\/hiluckev.com\/ar\/wp-json\/wp\/v2\/pages\/9130\/revisions\/16042"}],"wp:attachment":[{"href":"https:\/\/hiluckev.com\/ar\/wp-json\/wp\/v2\/media?parent=9130"}],"curies":[{"name":"\u062f\u0628\u0644\u064a\u0648 \u0628\u064a","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}