קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
לפני שמתחילים
חשוב להשלים את השלבים במאמר תחילת העבודה כדי לוודא שיש לכם אפליקציה עם Firebase מופעל, ושאתם משתמשים בגרסה האחרונה של Firebase In-App MessagingSDK.
יצירת קמפיין חדש
מגדירים את הקמפיין החדש בדף ההודעות במסוף Firebase.
אם אתם משתמשים בפלטפורמה בפעם הראשונה, לוחצים על יצירת הקמפיין הראשון.
אם לא, לוחצים על קמפיין חדש.
שלב 1: סגנון ותוכן
במסוף, אפשר להשתמש בתבניות של הודעות Firebase In-App Messaging כדי לשלב תכונות שונות בהודעות בתוך האפליקציה, ולשרת מטרות שונות.
תרחישים לדוגמה שיעזרו לכם להבין איך להגדיר סגנון לתבניות של ההודעות.
סוג תבנית ההודעה
תכונה
תיאור התכונה
כרטיס
מודאל
תמונה בלבד
באנר
lens
lens
lens
lens
תמונה
צריך לספק כתובת URL של תמונה מסוג HTTPS. אפשר להשתמש ב-Firebase Hosting כדי לארח את התמונות.
lens
lens
lens
lens
פעולה
אפשר להשתמש בקישורי אינטרנט או בקישורי עומק כדי להפנות את המשתמשים לדפים חיצוניים או לדפים ספציפיים באפליקציה. אפשר להשתמש בקישורים דינמיים של Firebase כדי ליצור ולנהל קישורי עומק. התבניות מודאלית ותמונה בלבד כוללות לחצן X, שמאפשר למשתמשים לסגור את ההודעה.
lens
lens
lens
צבע טקסט/רקע
כדי להתאים אישית את הוויזואליזציה של ההודעה, מזינים את קוד הצבע ההקסדצימלי או משתמשים במעבר הצבעים כדי למצוא את הגוון הספציפי שמתאים למותג.
lens
lens
lens
כותרת או גוף ההודעה
כדאי למשוך את תשומת הלב של המשתמשים באמצעות כותרת רלוונטית ותיאור תמציתי. פלטפורמת Firebase מתרגמת את הטקסט ומגדילה אותו באופן אוטומטי כדי להתאים אותו למשתמשים.
lens
lens
כפתור ראשי
פעולת ברירת המחדל של הכפתור מוגדרת לסגירת ההודעה. צריך לציין כתובת URL להפניה מחדש של משתמשים כפעולה.
lens
כפתור משני
פעולת ברירת המחדל של הכפתור מוגדרת לסגירת ההודעה. צריך לציין כתובת URL להפניה מחדש של משתמשים כפעולה.
בחלון Compose campaign (יצירת קמפיין) במסוף Firebase, אפשר להתאים אישית את ההודעה באמצעות התכונות שזמינות לכל תבנית.
בצד שמאל של החלון יצירת קמפיין, אפשר לראות תצוגה מקדימה של ההודעה במצב לרוחב או לאורך בטלפון או בטאבלט.
אם רוצים, מגדירים מטא נתונים מותאמים אישית לקמפיין. הנתונים האלה יהיו זמינים בצד הלקוח באמצעות קריאות חוזרות (callback) של SDK, כשהקמפיין יוצג למשתמש.
לדוגמה, יכול להיות שתרצו לתייג את הקמפיין עם קוד הטבה שתוכלו להשתמש בו בחשבון הלקוח.
שלב 2: טירגוט המשתמשים
הזן שם למסע הפרסום שלך.
השם הזה משמש לדיווח על הקמפיין והוא לא חלק מההודעה הגלויה.
(אופציונלי) מספקים תיאור לקמפיין.
התיאור הזה משמש לדיווח על הקמפיין והוא לא חלק מההודעה הגלויה.
לוחצים על התפריט הנפתח בחירת אפליקציה ומזהים את האפליקציה שרוצים לשייך לקמפיין הזה.
(אופציונלי) לוחצים על הלחצן וגם כדי לצמצם עוד יותר את קבוצת המשתמשים לטירגוט.
משתמשים בתפריט הנפתח בחירה כדי לבחור מפרטים נוספים.
אפשר לראות את אחוז המשתמשים הפוטנציאליים שעומדים בדרישות של הקמפיין הזה.
המספר הזה הוא אומדן שמבוסס על משתמשים פעילים שיצרו קשר עם השירות ב-7 הימים האחרונים. המשתמשים שעומדים בדרישות יראו את ההודעה הזו רק אם יתקיים תנאי הפעלה.
(אופציונלי) אם האפליקציה מטרגטת משתמשים בכמה שפות, תתבקשו להתאים את הקמפיין לשפות האלה. בתיבת הדו-שיח אפשר להוסיף תרגומים משלכם או להשתמש ב-Google Translate כדי להתאים את הקמפיין לשוק המקומי בקלות.
שלב 3: תזמון השליחה של ההודעה
מתארים את תאריך ההתחלה והשעה של הקמפיין.
הקמפיין יכול להתחיל לפעול כשמפרסמים אותו או כשהוא מתוזמן להתחיל.
מתארים את תאריך הסיום והשעה של הקמפיין.
הקמפיין יכול לפעול ללא הגבלת זמן או להסתיים בתאריך מתוזמן.
לוחצים על סמל האירוע + כדי להוסיף לפחות אירוע הפעלה אחד.
אתם יכולים להזין אירועים שמוגדרים כברירת מחדל או אירועים שנרשמו באמצעות Firebase Analytics כדי להפעיל את ההודעה באפליקציה. האירועים האלה יכולים להיות פעולות של משתמשים,
אירועי מערכת או שגיאות.
ההודעה באפליקציה מופעלת כשמתרחש אחד מהאירועים.
מציינים את מגבלת התדירות לכל מכשיר. ההגבלה מאפשרת לכם לקבוע באיזו תדירות המשתמשים יראו את ההודעה.
כברירת מחדל, קמפיין לא מוצג אחרי שהמשתמש צפה בו (כלומר, נחשף אליו) פעם אחת.
אפשר גם להגדיר את תדירות ההודעות בימים.
שלב 4: אירועי המרה (אופציונלי)
ב-Firebase מתבצע מעקב אחרי מספר החשיפות שמובילות לאירוע המרה שהושלם.
בחלון יצירת קמפיין, משתמשים בתפריט הנפתח בחירת אירוע המרה כדי לבחור מבין האפשרויות הבאות:
אחרי שמפרסמים את הקמפיין, עוברים אל דף ההודעות ולוחצים על שם הקמפיין כדי לראות נתונים שקשורים להיסטוריית ההמרות של הקמפיין.
פרסום הקמפיין
אחרי שמשנים את הקמפיין, אפשר ללחוץ על שמירה כטיוטה כדי לחזור ולערוך את הקמפיין בסטטוס טיוטה.
לחלופין, אפשר ללחוץ על פרסום כדי לפרסם את ההודעה למשתמשים המטורגטים בתאריך המתוזמן. אפשר לערוך את הקמפיין אחרי שהוא מתפרסם.
אחרי שמפסיקים קמפיין שפורסם, אי אפשר לפרסם אותו שוב.
עם זאת, אפשר להפסיק או לערוך קמפיין פעיל בכל שלב. אפשר גם לשכפל קמפיין קיים כדי ליצור וריאציות קלות ולהימנע מיצירת קמפיינים חדשים לגמרי.
קבלת תובנות מבוססות-AI לגבי קמפיינים של הודעות עם Gemini ב-Firebase
Gemini ב-Firebase
מספק סיכומים של קמפיינים של הודעות, תובנות והנחיות לשיפור הביצועים של Firebase Cloud Messaging ושל קמפיינים של In-App Messaging. ניתוח נתוני הקמפיין ב-Gemini ב-Firebase יכול לעזור לכם להבין את היקף החשיפה של הקמפיינים ואת ההשפעה שלהם, וגם להציע אסטרטגיות לשיפור מעורבות המשתמשים והצמיחה.
גישה לתובנות מבוססות-AI לגבי קמפיינים של העברת הודעות
כדי להשתמש בתובנות מבוססות-AI לגבי קמפיינים של העברת הודעות, צריך לוודא שבפרויקט שלכם יש:
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-09-05 (שעון UTC)."],[],[],null,["\u003cbr /\u003e\n\nBefore you begin\n\nMake sure you complete the steps in [Get\nStarted](/docs/in-app-messaging/get-started) to\nensure you have an app with Firebase enabled and have added the latest Firebase In-App Messaging\nSDK.\n\nCreate a new campaign\n\nSet up your new campaign in the Firebase console's\n[Messaging page](https://console.firebase.google.com/project/_/messaging).\n\n- If you are a first time user, click **Create your first campaign**.\n- If not, click **New campaign**.\n\nStep 1: Style and content\n\nIn the console, use Firebase In-App Messaging message templates to incorporate different\nfeatures to serve different purposes with your in-app messages.\n\n[Explore use cases](/docs/in-app-messaging/explore-use-cases) to see\nexamples for stylizing the messages templates.\n\n\n| Message Template Type |||| Feature | Feature Description |\n| Feature | Feature Description |\n|---------|---------------------|------------|--------|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Card | Modal | Image only | Banner |\n| lens | lens | lens | lens | Image | Provide an HTTPS Image URL. You can use [Firebase Hosting](/docs/hosting) to host your images. |\n| lens | lens | lens | lens | Action | Use weblinks or deep links to send your users to external pages or specific pages in your app. You can use [Firebase Dynamic Links](/docs/dynamic-links) to create and manage deep links. Templates **Modal** and **Image only** include an X button, allowing users to dismiss the message. |\n| lens | lens | | lens | Text/background color | Customize the message visuals by entering the Hex Color Code or using the color gradient to find the specific hue that matches your brand. |\n| lens | lens | | lens | Message title/body | Catch your user's attention with a relevant header and a concise description. Firebase automatically translates and scales your text to accommodate your users. |\n| lens | lens | | | Primary button | The default button action is set to dismiss the message. Provide a URL to redirect users as the action. |\n| lens | | | | Secondary button | The default button action is set to dismiss the message. Provide a URL to redirect users as the action. |\n\n\u003cbr /\u003e\n\n1. In Firebase console's **Compose campaign** window, customize your\n message to your liking with the features available to each template.\n\n2. On the right-hand side of the **Compose campaign** window, preview your message\n in landscape or portrait orientation for a phone or tablet device.\n\n The in-console preview provides a general idea of how your message appears\n on a mobile device. Actual message rendering varies depending on the device.\n [Test with a real device to see the exact rendering](/docs/in-app-messaging/get-started#send_a_test_message).\n3. If desired, define custom metadata for your campaign. This metadata will be available\n on the client side using SDK callbacks when a campaign is displayed to a user.\n For example, you might want to tag the campaign with a promo code that\n you can use on the client.\n\nStep 2: Target your users\n\n1. Enter a name for your campaign.\n\n This name is used for campaign reporting and is not part of the visible\n message.\n2. (Optional) Provide a campaign description.\n\n This description is used for campaign reporting and is not part of the visible\n message.\n3. Click on the **Select app** dropdown and identify which\n app you want to associate with this campaign.\n\n4. (Optional) Click the **and** button to further narrow down your\n target users.\n\n Use the **Select** dropdown to choose additional specifications.\n5. View the percentage of potential users that are eligible for this\n campaign.\n\n This number is estimated based on active users who contacted the service\n in the last 7 days. Eligible users only see this message if a trigger\n condition occurs.\n6. (Optional) If your app targets users in multiple languages, you will be\n prompted to localize the campaign in those languages. Use the dialog to\n either add your own translations or use Google Translate to localize the\n campaign easily.\n\nStep 3: Scheduling your message\n\n1. Describe a start date and time for your campaign.\n\n Your campaign can start when you publish the campaign or have a scheduled\n start.\n2. Describe an end date and time for your campaign.\n\n Your campaign can run indefinitely or have a scheduled endpoint.\n3. Click Event + to add at least one trigger event.\n\n - You can enter default events or [events logged through Firebase Analytics](/docs/analytics/android/events) to trigger your in-app message. These events can be user actions, system events, or errors.\n - Your in-app message is triggered when any of your events occur.\n4. Specify your per-device frequency limit. The limit allows you to\n control how often your users see your message.\n\n - By default, a campaign is not shown after it has been viewed by (that is, impressed on) the user once.\n - Or, you can set the frequency of messages in days.\n\nStep 4: Conversion events (optional)\n\nFirebase tracks the number of impressions that result in a completed conversion\nevent.\n\n1. In the **Compose campaign** window, use the **Select conversion event**\n dropdown to choose from:\n\n - The default conversion events.\n - Any [events you enabled as conversions](https://support.google.com/firebase/answer/6317522#enable).\n2. After you publish the campaign, go to the\n [Messaging page](https://console.firebase.google.com/project/_/messaging)\n and click on the campaign's name to see data related to the\n campaign's conversion history.\n\nPublishing your campaign\n\nAfter modifying your campaign, you can click **Save as draft** for the option to\nreturn and edit the campaign in draft status.\n\nOr, you can click **Publish** to release your message to targeted users on the\nscheduled date. You can edit your campaign after it has been published.\n\nOnce you stop a published campaign, you will not be able to publish it again.\nHowever, you may stop or edit a running campaign at any time. You can also\nduplicate an existing one to make slight variations and avoid creating a\ncompletely new campaigns.\n\nGet AI insights for messaging campaigns with Gemini in Firebase\n\nGemini in Firebase\nprovides messaging campaign summarization, insights,\nand guidance to improve your Firebase Cloud Messaging and In-App Messaging\ncampaign performance. By analyzing campaign data,\nGemini in Firebase can help you understand your campaigns' reach and impact\nand suggests strategies to improve user engagement and growth.\n\nAccess AI insights for messaging campaigns\n\nTo use messaging campaign AI insights, make sure that your project has the\nfollowing:\n\n- Gemini in Firebase is enabled for your project. Learn more at\n [Set up Gemini in Firebase](/docs/gemini-in-firebase/set-up-gemini).\n\n- Firebase Cloud Messaging or In-App Messaging is enabled in your Firebase\n project.\n\n- At least one campaign exists and appears in the Firebase console.\n\nAfter ensuring these requirements are met:\n\n1. Open [**Messaging**](//console.firebase.google.com/project/_/messaging) in the\n Firebase console to access campaign data.\n\n2. After your campaign data loads, click **Generate AI insights**.\n\n A summary and analysis of your messaging campaigns appears.\n\nPricing\n\nSee\n[Gemini in Firebase pricing](/docs/gemini-in-firebase#pricing) for more\ninformation."]]