قياس الأحداث الرئيسية في تطبيقات الأجهزة الجوّالة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يمكن أن يساعدك قياس الأحداث الرئيسية في معرفة ما إذا كانت تفاعلات المستخدمين تؤدي
بفعالية إلى نشاط عملاء قيّم داخل تطبيقك المتوافق مع الأجهزة الجوّالة، مثل
عمليات الشراء والاشتراكات والاشتراكات داخل التطبيق.
يمكن قياس الإحالات الناجحة والأحداث الرئيسية للتطبيقات المتوافقة مع الأجهزة الجوّالة في إعلانات Google و
إحصاءات Google 4.
إعلانات Google
لتسجيل الإحالات الناجحة في حسابك على "إعلانات Google"، استورِد الأحداث من موقعك على
"إحصاءات Google 4":
- سجّل الدخول إلى حسابك على "إعلانات Google".
- انقر على
في أعلى يسار صفحة حسابك.
- ضمن القسم القياس، انقر على الإحالات الناجحة.
- انقر على
.
- اختَر تطبيقًا من قائمة أنواع الإحالات الناجحة.
- انقر على إحصاءات Google 4 (Firebase)، ثم انقر على متابعة.
- ضَع علامة في المربّع بجانب كلّ حدث تريد استيراده، ثمّ انقر على استيراد.
- انقر على تم.
اطّلِع على مزيد من المعلومات عن الإحالات الناجحة في "إعلانات Google".
إحصاءات Google 4
تتيح مواقع "إحصاءات Google 4" قياسًا موحّدًا لتفاعلات المستخدِمين
والأحداث على مستوى موقعك الإلكتروني وتطبيقك المتوافق مع الأجهزة الجوّالة. تجمع "إحصاءات Google 4" العديد من
الأحداث تلقائيًا، ويتم وضع علامة على بعض الأحداث تلقائيًا كأحداث رئيسية. تستخدِم دفقات بيانات التطبيقات ضمن مواقع "إحصاءات Google 4" حزمة تطوير البرامج (SDK) لمنصّة Firebase لتمتيع العميل
بإرسال الأحداث. مزيد من المعلومات عن الأحداث
بالإضافة إلى ذلك، يمكنك تفعيل الأحداث الأخرى المجمّعة تلقائيًا أو إيقافها،
أو وضع علامة على الأحداث المخصّصة كأحداث رئيسية أيضًا.
يمكنك تسجيل حدث كحدث رئيسي قبل إرسال الحدث أو بعده.
لتسجيل حدث قبل إرساله:
- في "إحصاءات Google"، انتقِل إلى تقارير موقع إحصاءات Google 4.
- انقر على الأحداث الرئيسية.
- انقر على حدث رئيسي جديد.
- أدخِل اسم الحدث الذي تريد تعريفه كحدث رئيسي. ملاحظة:
تأكّد من أنّ اسم الحدث الذي تُدخله هو نفسه اسم الحدث الذي
تُرسله.
- انقر على حفظ.
إذا سبق لك إرسال الحدث وتريد تصنيفه كحدث رئيسي:
- في "إحصاءات Google"، انتقِل إلى تقارير موقع إحصاءات Google 4.
- انقر على جميع الأحداث.
- في صف الحدث، فعِّل مفتاح التبديل في عمود وضع علامة حدث رئيسي.
لإرسال حدث مخصّص، اتّبِع الخطوات التالية:
Android: Java
Bundle params = new Bundle();
params.putString("image_name", name);
params.putString("full_text", text);
mFirebaseAnalytics.logEvent("share_image", params);
Android: Kotlin
firebaseAnalytics.logEvent("share_image") {
param("image_name", name)
param("full_text", text)
}
iOS: Swift
Analytics.logEvent("share_image", parameters: [
"name": name as NSObject,
"full_text": text as NSObject
])
iOS: Objective-C
[FIRAnalytics logEventWithName: @ "share_image"
parameters: @ {
@ "name": name,
@ "full_text": text
}
];
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-30 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-30 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eKey event measurement allows you to track user interactions within your mobile app that lead to valuable customer actions like purchases and sign-ups.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Ads and Google Analytics 4 can be used to measure mobile app conversions and key events for analysis and optimization.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Analytics 4 provides unified measurement across your website and mobile app, collecting many events by default with the option to customize key events for specific tracking needs.\u003c/p\u003e\n"],["\u003cp\u003eYou can mark events as key events in Google Analytics 4 either before they are sent or retroactively after they have been recorded.\u003c/p\u003e\n"]]],["Key mobile app user activities, like purchases and sign-ups, can be measured as conversions in Google Ads and key events in Google Analytics 4. In Google Ads, import events from Google Analytics 4 by navigating to **Conversions** and selecting **App**. In Google Analytics 4, register events as key events by entering the event's exact name under **Key events** or marking the event under **All events**. Custom events can be sent via the Firebase SDK, as demonstrated with code examples for Android and iOS.\n"],null,["# Measure key events in mobile apps\n\nKey event measurement can help you to understand if user interactions\neffectively lead to valuable customer activity within your mobile app, such as\nin-app purchases, subscriptions, and sign-ups.\n\nMobile app conversions and key events may be measured in [Google Ads](#google_ads) and\n[Google Analytics 4](#google_analytics_4).\n\nGoogle Ads\n----------\n\nTo capture conversions in your Ads account, import events from your Google\nAnalytics 4 property:\n\n1. Sign in to your [Google Ads account](https://ads.google.com/).\n2. Click in the upper-right corner of your account.\n3. Under the section labeled **Measurement** click **Conversions**.\n4. Click .\n5. Select **App** from the list of conversion types.\n6. Click **Google Analytics 4 (Firebase)** , then click **Continue**.\n7. Check the box next to each event you'd like to import, click **Import**.\n8. Click **Done**.\n\n[Learn more about Google Ads conversions](https://support.google.com/google-ads/answer/6366292).\n\nGoogle Analytics 4\n------------------\n\nGoogle Analytics 4 properties enable unified measurement of user interactions\nand events across your website and mobile app. Google Analytics 4 collects many\nevents by default, and some events are automatically marked as key events. App\ndata streams within Google Analytics 4 properties utilize the [Firebase SDK](https://firebase.google.com/docs/guides) to\nsend events. [Learn more about events](https://developers.google.com/tag-platform/devguides/events).\n\nAdditionally, you can [enable or turn off](https://support.google.com/analytics/answer/9267568) other automatically collected events,\nor mark custom events as key events as well.\n\nYou can register an event as a key event either before or after the event is\nsent.\n\nTo register an event before it is sent:\n\n1. In Analytics, navigate to the reports for your Google Analytics 4 property.\n2. Click **Key events**.\n3. Click **New key event**.\n4. Enter the name of the event you want to identify as a key event. *Note:\n Make sure the event name you enter is exactly the same as the event that you\n are sending.*\n5. Click **Save**.\n\nIf you've already sent the event previously and want to mark it as a key event:\n\n1. In Analytics, navigate to the reports for your Google Analytics 4 property.\n2. Click **All events**.\n3. In the row for the event, turn on the switch in the **Mark as key event** column.\n\nTo send a custom event, do the following: \n\n### Android: Java\n\n Bundle params = new Bundle();\n params.putString(\"image_name\", name);\n params.putString(\"full_text\", text);\n mFirebaseAnalytics.logEvent(\"share_image\", params);\n\n### Android: Kotlin\n\n firebaseAnalytics.logEvent(\"share_image\") {\n param(\"image_name\", name)\n param(\"full_text\", text)\n }\n\n### iOS: Swift\n\n Analytics.logEvent(\"share_image\", parameters: [\n \"name\": name as NSObject,\n \"full_text\": text as NSObject\n ])\n\n### iOS: Objective-C\n\n [FIRAnalytics logEventWithName: @ \"share_image\"\n parameters: @ {\n @ \"name\": name,\n @ \"full_text\": text\n }\n ];"]]