🎬 LIVE DEMO · Method 3: Universal Widget · ← Hub
Method 3 of 8 · Tier 3-4

วาง 1 บรรทัด · ใช้ได้ทุก CMS 🧩

Copy-paste snippet เดียว · ทำงานกับ WP, Shopify, Wix, Webflow, Squarespace, React, Next.js, Vue, Static HTML · ไม่มี plugin ต้องลง

1
บรรทัด code
<30s
ติดตั้ง
12kb
Gzipped
0
Dependencies

1 Copy-Paste Snippet

วางก่อน </body> ของเว็บคุณ · ปรับสีและตำแหน่งได้ใน dashboard

<!-- AIM AI Widget -->
<script src="https://cdn.aim-dev.com/widget.js"
        data-key="pk_YOUR_SITE_KEY"
        data-lang="auto"
        data-color="#6366f1"
        defer></script>

💡 เปลี่ยน pk_YOUR_SITE_KEY เป็น key จริงที่เราให้ · เริ่มใช้ได้เลย

2 แพลตฟอร์มที่รองรับ

คลิก tab เพื่อดูวิธีวางสำหรับแต่ละระบบ

WordPress (ทุกธีม)

เปิด Admin → Appearance → Theme File Editor → footer.php · วางก่อน </body>

<script src="https://cdn.aim-dev.com/widget.js" data-key="pk_xxx" defer></script>

✓ เทสติดใน Astra, Divi, Avada, GeneratePress, Kadence, Elementor

Shopify (Liquid theme)

Online Store → Themes → Edit code → theme.liquid · วางก่อน </body>

<script src="https://cdn.aim-dev.com/widget.js" data-key="pk_xxx" data-shop="{{ shop.permanent_domain }}" defer></script>

✓ รวมกับ Shopify Chat · ดึงข้อมูลสินค้าจาก store อัตโนมัติ

Wix Editor

Settings → Custom Code → Add Custom Code · Position: body-end

<script src="https://cdn.aim-dev.com/widget.js" data-key="pk_xxx" defer></script>

✓ ต้อง upgrade Premium plan (Wix limitation)

React / Next.js

ใน layout.tsx หรือ _document.tsx

import Script from 'next/script'

export default function Layout({children}) {
  return (
    <>
      {children}
      <Script
        src="https://cdn.aim-dev.com/widget.js"
        data-key="pk_xxx"
        strategy="afterInteractive"
      />
    </>
  )
}

Static HTML

วางในทุกหน้าก่อน </body>

<script src="https://cdn.aim-dev.com/widget.js" data-key="pk_xxx" defer></script>

Webflow

Project Settings → Custom Code → Footer Code

<script src="https://cdn.aim-dev.com/widget.js" data-key="pk_xxx" defer></script>

3 ปรับแต่งได้ทุกอย่าง

ทุก option ตั้งผ่าน data-attributes · หรือผ่าน dashboard

Attribute Options Default
data-keypk_xxx (required)
data-langth / en / autoauto
data-colorhex color#6366f1
data-positionbottom-right / bottom-leftbottom-right
data-greetingcustom greeting text"สวัสดีครับ!"
data-mobileshow / hideshow
data-delayseconds before first popup15
data-user-idlogged-in user id (for CRM)null

4 Feature Built-in

Lightweight12kb gzipped · ไม่กระทบ page speed
🎨
White-labelซ่อน AIM branding · แสดง logo คุณแทน (T4+)
🌍
Multi-lang autodetect ภาษา browser · ตอบถูกภาษา
📱
Responsivemobile/desktop · touch-optimized
A11yARIA labels · keyboard nav · screen reader
🔒
GDPR readycookie consent · data region selectable

5 ราคา & Tier

Setup
฿0
ฟรี · self-service
Monthly
฿2,900+
2,000 msg/เดือน
ระยะเวลา
30 วิ
ติดตั้งถึงใช้ได้
Tier
T3-T4
ทุกแพ็กเกจขึ้นไป

Widget ตัวนี้ทำงานอยู่บนเว็บนี้แล้ว 👀

ลองคลิก 💬 ที่มุมล่างขวาสิ · นี่คือ widget ตัวเดียวกัน