After completing the basic AdMob setup, you can also add the Firebase SDK for Google Analytics to take advantage of other features from Google Analytics and Firebase. Learn how to get started with Google Analytics later on this page.
These increasing levels of configuration support features that can help you optimize your app's user experience and your ad revenue. Check out the following table of features and its links to learn more!
| বৈশিষ্ট্য | Add Mobile Ads SDK + enable user metrics | Add Mobile Ads SDK + enable user metrics and Link AdMob to Firebase | Add Mobile Ads SDK + enable user metrics and Link AdMob to Firebase and Add Firebase SDK for Analytics |
| View user metrics in your AdMob account | |||
| আপনার অ্যাপ থেকে স্বয়ংক্রিয়ভাবে অ্যানালিটিক্স ইভেন্ট এবং ব্যবহারকারীর বৈশিষ্ট্য সংগ্রহ করুন | |||
| View curated user metrics in AdMob | |||
| Firebase-এর মাধ্যমে আপনার অ্যানালিটিক্স ডেটা অন্বেষণ করুন এবং তা নিয়ে কাজ করুন। | |||
| View key metrics in the Firebase console | |||
| Mark conversions for ad campaigns | |||
| কাস্টম অডিয়েন্স তৈরি করুন | |||
| Export and analyze data in BigQuery | |||
| আপনার অ্যানালিটিক্স ডেটার জন্য আরও কাস্টমাইজেশন বৈশিষ্ট্য অ্যাক্সেস করুন | |||
| অ্যানালিটিক্স এবং মডেলের জন্য কাস্টম ইভেন্ট লগ করুন (যেমন ARPU এবং ARPPU মেট্রিক্সের জন্য ecommerce_purchase ইভেন্ট লগ করা ) | |||
| Configure custom conversions for ad campaigns | |||
| Use other Firebase products (like Remote Config and A/B Testing ) | |||
Get started with Google Analytics
Google Analytics is Firebase's analytics engine that gives you access to powerful insights into your data. Start using Google Analytics in your app by adding the Firebase SDK for Google Analytics .
With the basic AdMob setup , you can view aggregated statistics from automatically collected events and user properties in the Analytics dashboard of the Firebase console without adding any additional code to your app.
However, if you want to collect additional custom event data or user properties, you'll need to use the Firebase SDK for Google Analytics . With this SDK, you can log up to 500 different analytics event types, and there's no limit on the total volume of events your app logs. An example use case for logging custom events is to include data in your revenue calculation from a custom event called ecommerce_purchase to help you better represent ARPU and ARPPU metrics .
Google Analytics এর জন্য Firebase SDK যোগ করার মাধ্যমে, আপনি বিজ্ঞাপন ক্যাম্পেইনের জন্য কাস্টম কনভার্সন যোগ করতে এবং অন্যান্য Firebase প্রোডাক্টের ব্যবহারও সক্ষম করতে পারেন।
The following steps describe how to start using the Firebase SDK for Google Analytics in your app. After initializing the SDK, visit the Analytics documentation to learn how to start logging events in your app.
Step 1: Add a configuration file to your app
আপনি যদি AdMob লিঙ্ক তৈরি করার আগে Firebase-এ আপনার অ্যাপটি রেজিস্টার করে থাকেন, তাহলে আপনি ইতিমধ্যেই আপনার অ্যাপে একটি Firebase কনফিগারেশন ফাইল যোগ করেছেন।আপনার Xcode প্রোজেক্টের রুটে GoogleService-Info.plist ফাইলটি আছে কিনা তা দেখুন। এছাড়াও, নিশ্চিত করুন যে কনফিগারেশন ফাইলটি সমস্ত টার্গেটে যোগ করা হয়েছে।
আপনার > প্রজেক্ট সেটিংস- এর ' আপনার অ্যাপস' কার্ডে, যে অ্যাপটির জন্য আপনার কনফিগারেশন ফাইল প্রয়োজন, সেটির বান্ডেল আইডি নির্বাচন করুন।
আপনার Firebase iOS কনফিগারেশন ফাইল (
GoogleService-Info.plist) পেতে Download GoogleService-Info.plist -এ ক্লিক করুন।আপনি আপনার > প্রজেক্ট সেটিংস থেকে যেকোনো সময় আপনার Firebase iOS কনফিগারেশন ফাইলটি পুনরায় ডাউনলোড করতে পারেন।
নিশ্চিত করুন যে কনফিগারেশন ফাইলের নামের শেষে অতিরিক্ত অক্ষর যোগ করা হয়নি, যেমন
(2)।
আপনার কনফিগারেশন ফাইলটি আপনার Xcode প্রোজেক্টের রুটে সরান। যদি অনুরোধ করা হয়, তাহলে কনফিগারেশন ফাইলটি সমস্ত টার্গেটে যোগ করার জন্য নির্বাচন করুন।
If you have multiple bundle IDs in your project, you must associate each bundle ID with a registered app in the Firebase console so that each app can have its own GoogleService-Info.plist file.
ধাপ ২: আপনার অ্যাপে Analytics জন্য ফায়ারবেস এসডিকে যোগ করুন
আপনার Podfile-এ Google Analytics এর জন্য Firebase SDK-এর ডিপেন্ডেন্সিটি যোগ করুন:
pod 'FirebaseAnalytics'pod installচালান, তারপর তৈরি হওয়া.xcworkspaceফাইলটি খুলুন।- আপনার
UIApplicationDelegateএFirebaseCoreমডিউলটি ইম্পোর্ট করুন, সেইসাথে আপনার অ্যাপ ডেলিগেট দ্বারা ব্যবহৃত অন্য যেকোনো Firebase মডিউলও ইম্পোর্ট করুন। উদাহরণস্বরূপ, Cloud Firestore এবং Authentication ব্যবহার করতে:SwiftUI
import SwiftUI import FirebaseCore import FirebaseFirestore import FirebaseAuth // ...
সুইফট
import FirebaseCore import FirebaseFirestore import FirebaseAuth // ...
উদ্দেশ্য-সি
@import FirebaseCore; @import FirebaseFirestore; @import FirebaseAuth; // ...
- আপনার অ্যাপ ডেলিগেটের
application(_:didFinishLaunchingWithOptions:)মেথডে একটিFirebaseAppশেয়ার্ড ইনস্ট্যান্স কনফিগার করুন:SwiftUI
// Use Firebase library to configure APIs FirebaseApp.configure()
সুইফট
// Use Firebase library to configure APIs FirebaseApp.configure()
উদ্দেশ্য-সি
// Use Firebase library to configure APIs [FIRApp configure];
- If you're using SwiftUI, you must create an application delegate and attach it to your
Appstruct viaUIApplicationDelegateAdaptororNSApplicationDelegateAdaptor. You must also disable app delegate swizzling. For more information, see the SwiftUI instructions .SwiftUI
@main struct YourApp: App { // register app delegate for Firebase setup @UIApplicationDelegateAdaptor(AppDelegate.self) var delegate var body: some Scene { WindowGroup { NavigationView { ContentView() } } } }
Implement custom event logging
This section shows an example of how to implement custom event logging in your app. This specific example is for the custom event ecommerce_purchase which is a helpful event to log for AdMob -linked apps, especially for calculating ARPU and ARPPU .
A key metric for your app is revenue by user , which can be further segmented into ARPU and ARPPU . These two metrics display in the User metrics card of your AdMob account and in the Analytics dashboard of the Firebase console. Revenue, though, isn't directly measured; instead, it's the sum of your estimated AdMob earnings and the following two analytics event values:
- ইন-
in_app_purchase: যখন কোনো ব্যবহারকারী আইটিউনস-এর অ্যাপ স্টোর দ্বারা প্রক্রিয়াকৃত কোনো ইন-অ্যাপ পারচেজ সম্পন্ন করেন, যেমন প্রাথমিক সাবস্ক্রিপশন, প্রিমিয়াম পরিষেবা আনলক করা, বা ইন-গেম আইটেম কেনা।
-
ecommerce_purchase: যখন কোনো ব্যবহারকারী কোনো কেনাকাটা সম্পন্ন করেন, যেমন অনলাইন শপিং, কুপন বা ছাড়ের পণ্য কেনা, অথবা সিনেমার টিকিট কেনা।
Without any additional code in your app, the Mobile Ads SDK automatically collects analytics data for in_app_purchase events. However, if you want to also include ecommerce_purchase event data in the revenue calculation, you'll need to implement custom logging via the Firebase SDK for Google Analytics .
আপনার অ্যাপে কাস্টম ইভেন্ট লগিং প্রয়োগ করার উপায় নিচে দেওয়া হলো:
Make sure that you've completed the Get started with Google Analytics section of this page, which includes configuring your app to use Firebase, adding the Firebase SDK for Google Analytics , and initializing the SDK.
একটি
ecommerce_purchaseইভেন্ট লগ করুন ( সুইফট | অবজেক্টিভ-সি )। এখানে একটি উদাহরণ দেওয়া হলো:সুইফট
Analytics.logEvent(AnalyticsEventPurchase, parameters: [ AnalyticsParameterCoupon: "SummerPromo", AnalyticsParameterCurrency: "JPY", AnalyticsParameterValue: 10000, AnalyticsParameterShipping: 500, AnalyticsParameterTransactionID: "192803301", ])
উদ্দেশ্য-সি
[FIRAnalytics logEventWithName:kFIREventPurchase parameters:@{ kFIRParameterCoupon: @"SummerPromo", kFIRParameterCurrency: @"JPY", kFIRParameterValue: @10000, kFIRParameterShipping: @500, kFIRParameterTransactionID: @"192803301", }];
আপনার অ্যাপে কাস্টম ইভেন্ট লগিং সম্পর্কে আরও জানতে, Analytics ডকুমেন্টেশন দেখুন।
Use other Firebase products in your app
Google Analytics এর জন্য Firebase SDK যোগ করার পর, আপনি Firebase Remote Config এবং Firebase A/B Testing মতো অন্যান্য Firebase প্রোডাক্টও ব্যবহার করা শুরু করতে পারবেন।
Remote Config আপনাকে কোনো অ্যাপ আপডেট প্রকাশ না করেই, বিনামূল্যে এবং সীমাহীন দৈনিক সক্রিয় ব্যবহারকারীর জন্য আপনার অ্যাপের আচরণ ও চেহারা পরিবর্তন করার সুযোগ দেয়।
A/B Testing gives you the power to test changes to your app's UI, features, or engagement campaigns to learn if they make an impact on your key metrics (like revenue and retention) before rolling the changes out widely.
Optimize ad monetization for your app
Try out different ad formats or configurations with a small subset of users, and then make data driven decisions about implementing the ad for all your users. To learn more, check out the following tutorials:
নতুন বিজ্ঞাপন ফরম্যাটের গ্রহণযোগ্যতা পরীক্ষা করুন ( সংক্ষিপ্ত বিবরণ | বাস্তবায়ন )।
বিজ্ঞাপনের ফ্রিকোয়েন্সি অপ্টিমাইজ করুন ( সংক্ষিপ্ত বিবরণ | বাস্তবায়ন )।