AdMob অ্যাপের সাথে Google Analytics এবং Firebase-এর আরও বৈশিষ্ট্য ব্যবহার করুন


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 .

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 ফাইলটি আছে কিনা তা দেখুন। এছাড়াও, নিশ্চিত করুন যে কনফিগারেশন ফাইলটি সমস্ত টার্গেটে যোগ করা হয়েছে।

ধাপ ২: আপনার অ্যাপে Analytics জন্য ফায়ারবেস এসডিকে যোগ করুন

  1. আপনার Podfile-এ Google Analytics এর জন্য Firebase SDK-এর ডিপেন্ডেন্সিটি যোগ করুন:

    pod 'FirebaseAnalytics'
    
  2. pod install চালান, তারপর তৈরি হওয়া .xcworkspace ফাইলটি খুলুন।

  3. আপনার UIApplicationDelegateFirebaseCore মডিউলটি ইম্পোর্ট করুন, সেইসাথে আপনার অ্যাপ ডেলিগেট দ্বারা ব্যবহৃত অন্য যেকোনো 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;
    // ...
          
  4. আপনার অ্যাপ ডেলিগেটের 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];
  5. If you're using SwiftUI, you must create an application delegate and attach it to your App struct via UIApplicationDelegateAdaptor or NSApplicationDelegateAdaptor . 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 .

আপনার অ্যাপে কাস্টম ইভেন্ট লগিং প্রয়োগ করার উপায় নিচে দেওয়া হলো:

  1. 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.

  2. একটি 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: