# เกมมือถือ

เพลย์บุ๊กนี้แสดงวิธีตั้งค่า Pushwoosh สำหรับเกมมือถือ ตั้งแต่การระบุตัวผู้เล่นไปจนถึงการเปิดใช้งาน Journey สำหรับการเริ่มต้นใช้งาน การมีส่วนร่วม การดึงผู้เล่นกลับมาใช้งานอีกครั้ง และการซื้อในแอป

ตั้งค่า Pushwoosh เป็นเจ็ดขั้นตอนตามลำดับนี้:

1. ตั้งค่า [User ID](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#identify-players-by-user-id) ให้ผู้เล่นแต่ละคน เพื่อให้ Pushwoosh จดจำผู้เล่นคนเดียวกันได้ในทุกอุปกรณ์
2. เลือก[อีเวนต์ที่จะติดตาม](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#set-up-the-events-to-track) เพื่อบันทึกสิ่งที่ผู้เล่นทำในเกม
3. ไม่บังคับ: จัดเก็บข้อมูลผู้เล่น เช่น ด่าน หรือผู้เล่นเคยจ่ายเงินแล้วหรือไม่ ไว้ใน[แท็ก](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#store-player-data-in-tags)
4. จัดกลุ่มผู้เล่นที่ตรงกับเงื่อนไขของคุณไว้ใน[เซกเมนต์](/th/tutorials/industry-playbooks/mobile-games/build-the-segments/) เช่น ผู้เล่นที่ไม่ได้เปิดเกมมา 30 วัน
5. ขอสิทธิ์การแจ้งเตือนแบบพุชในจังหวะที่เหมาะสม ตั้งกฎการส่ง และตั้งค่ากลุ่มควบคุม ดู[เตรียมพร้อมสำหรับการสื่อสาร](/th/tutorials/industry-playbooks/mobile-games/prepare-for-communication/)
6. ส่งข้อความโดยอัตโนมัติด้วย [Journey](/th/tutorials/industry-playbooks/mobile-games/build-the-journeys/) เมื่อผู้เล่นทำบางอย่างในเกมหรือเข้าสู่เซกเมนต์
7. [ทดสอบแต่ละ Journey](/th/tutorials/industry-playbooks/mobile-games/launch-and-measure/) จากนั้นอ่านสถิติและวัดผลลัพธ์

หากต้องการเริ่มจากสิ่งที่น้อยกว่านี้ ให้ทำตาม[การตั้งค่าขั้นต่ำเพื่อเริ่มส่งข้อความถึงผู้เล่น](#minimum-setup-to-start-messaging-players)

## ข้อกำหนดเบื้องต้น

<Aside type="caution" icon="setting" title="ต้องได้รับความช่วยเหลือจากนักพัฒนา">
บางขั้นตอนในเพลย์บุ๊กนี้เป็นการเปลี่ยนแปลงในโค้ดของเกมคุณ ดู[สิ่งที่นักพัฒนาของคุณต้องทำ](#what-your-developers-need-to-do)
</Aside>

* [แอปพลิเคชันในบัญชี Pushwoosh ของคุณ](/th/product/first-steps/start-with-your-project/create-your-project/) ที่[ผสานรวม SDK](/th/developer/first-steps/integrate-pushwoosh-sdk/) แล้ว เพื่อให้อุปกรณ์ลงทะเบียนโดยอัตโนมัติ
* อีเมลและ App Inbox จำเป็นเฉพาะสำหรับ Journey ที่ระบุไว้ใน **สิ่งที่ต้องมี** เท่านั้น: [การดึงผู้เล่นที่ไม่ได้เล่นกลับมา](/th/tutorials/industry-playbooks/mobile-games/build-the-journeys/loyalty-and-win-back/#reactivation-for-inactive-players) ใช้อีเมล และ[การประกาศไลฟ์อีเวนต์และ VIP](/th/tutorials/industry-playbooks/mobile-games/build-the-journeys/loyalty-and-win-back/#live-event-and-vip-announcements) ใช้ App Inbox ส่วน Journey ส่วนใหญ่ในเพลย์บุ๊กนี้ใช้ push และข้อความ in-app

<span id="what-your-developers-need-to-do" />

## สิ่งที่นักพัฒนาของคุณต้องทำ

ส่งรายการนี้ให้นักพัฒนาของคุณ เพื่อให้พวกเขาส่งมอบทั้งหมดได้ในรีลีสเดียว:

* [ตั้งค่า User ID เมื่อเข้าสู่ระบบ](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#identify-players-by-user-id)
* [ส่งอีเวนต์](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#send-the-events-from-the-game) ที่ Journey ของคุณต้องใช้
* [ติดตามการซื้อ](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#track-revenue-as-pw_conversion) และหากคุณขายการสมัครสมาชิก ให้[ส่ง ID ของผู้เล่นไปกับการซื้อแต่ละครั้งใน Store](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#track-subscriptions-from-the-stores)
* [ย้ายคำขอสิทธิ์การแจ้งเตือนแบบพุช](/th/tutorials/industry-playbooks/mobile-games/prepare-for-communication/#ask-for-push-permission-at-the-right-moment) ออกจากการเปิดใช้ครั้งแรก
* จัดการ [deep links](/th/product/messaging-channels/push-notifications/advanced-push-features/deep-linking/) ไปยังหน้าจอด่าน รางวัล ร้านค้า และอีเวนต์ ซึ่ง Journey จะเปิดจาก push
* ผสานรวม Message Inbox SDK หากคุณใช้ [App Inbox](/th/tutorials/industry-playbooks/mobile-games/build-the-journeys/loyalty-and-win-back/#live-event-and-vip-announcements)

<span id="minimum-setup-to-start-messaging-players" />

## การตั้งค่าขั้นต่ำเพื่อเริ่มส่งข้อความถึงผู้เล่น

หากคุณยังไม่ต้องการทั้งเจ็ดขั้นตอน การตั้งค่าขั้นต่ำนี้ครอบคลุมงานพื้นฐานสองอย่าง ได้แก่ พาผู้เล่นใหม่ผ่านบทสอน และดึงผู้เล่นที่เลิกเล่นไปแล้วกลับมา ทำตามขั้นตอนเหล่านี้:

1. ขอให้นักพัฒนาของคุณเรียก `setUserId` เมื่อเข้าสู่ระบบ ดู[ระบุตัวผู้เล่นด้วย User ID](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#identify-players-by-user-id)
2. ตรวจสอบว่า `PW_ApplicationOpen` ส่งมาจากเกม ขอให้นักพัฒนาของคุณส่งอีเวนต์ `Tutorial started` และ `Tutorial completed` ด้วย ดู[ตั้งค่าอีเวนต์ที่จะติดตาม](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#set-up-the-events-to-track) และ[ส่งอีเวนต์จากเกม](/th/tutorials/industry-playbooks/mobile-games/collect-player-data/#send-the-events-from-the-game)
3. ย้ายคำขอสิทธิ์การแจ้งเตือนแบบพุชไปไว้ในจังหวะที่ช้ากว่านั้น เช่น หลังจบบทสอน บน iOS ผู้เล่นที่ปฏิเสธคำขอเมื่อเปิดครั้งแรกจะไม่สามารถถูกขอซ้ำได้อีก ดู[ขอสิทธิ์การแจ้งเตือนแบบพุชในจังหวะที่เหมาะสม](/th/tutorials/industry-playbooks/mobile-games/prepare-for-communication/#ask-for-push-permission-at-the-right-moment)
4. ตั้ง[กฎการส่ง](/th/tutorials/industry-playbooks/mobile-games/prepare-for-communication/#set-delivery-rules-before-you-message-players)
5. สร้างเซกเมนต์[ผู้เล่นกลุ่มเสี่ยง](/th/tutorials/industry-playbooks/mobile-games/build-the-segments/#at-risk-players) หากคุณติดตามการซื้อด้วย `PW_InAppPurchase` อยู่แล้ว ให้สร้าง[ผู้จ่ายล่าสุด](/th/tutorials/industry-playbooks/mobile-games/build-the-segments/#recent-payers) ด้วย
6. สร้างคอนเทนต์สำหรับ Journey ทั้งสองนี้ตามที่ระบุไว้ใน **เนื้อหาที่ต้องเตรียม** ของแต่ละสูตร
7. เปิดใช้งาน[การเริ่มต้นใช้งานสำหรับผู้เล่นใหม่](/th/tutorials/industry-playbooks/mobile-games/build-the-journeys/new-and-active-players/#onboarding-for-new-players) และ[การดึงผู้เล่นที่ไม่ได้เล่นกลับมา](/th/tutorials/industry-playbooks/mobile-games/build-the-journeys/loyalty-and-win-back/#reactivation-for-inactive-players)

เพิ่มเซกเมนต์และ Journey อื่นๆ ภายหลัง เมื่ออีเวนต์ของสิ่งเหล่านั้นเริ่มเข้ามา

## ขั้นตอนถัดไป

หากต้องการเพิ่ม Journey อื่นๆ โปรดดูคู่มือเหล่านี้:

* [วิธีตั้งค่าแคมเปญรักษาผู้ใช้ใน Pushwoosh](/th/tutorials/product-guides/lifecycle-marketing-campaigns/how-to-set-up-a-retention-campaign-in-pushwoosh/)
* [วิธีตั้งค่าแคมเปญการมีส่วนร่วมของผู้ใช้ใน Pushwoosh](/th/tutorials/product-guides/lifecycle-marketing-campaigns/how-to-set-up-a-user-engagement-campaign-in-pushwoosh/)
* [วิธีสร้างแคมเปญ re-engagement ใน Pushwoosh](/th/tutorials/product-guides/lifecycle-marketing-campaigns/how-to-create-a-re-engagement-campaign-in-pushwoosh/)
* [วิธีทดสอบ A/B/n ใน Customer Journeys](/th/tutorials/product-guides/how-to-create-campaigns-in-pushwoosh/how-to-abn-test-customer-journeys/)