Google-Analytics에서 Firebase-Analytics로 이동하는 방법은 무엇입니까?
배경
최근 몇 달 동안 Google은 " Firebase Analytics " 라는 새로운 Analytics 대안을 발표했습니다 .
문제
앱에 이미 Google-Analytics가 포함되어 있기 때문에 가장 잘 처리 할 수없는 몇 가지 장애물을 발견했습니다.
질문
이전에는 "newTracker"함수에 속성 ID가 필요했습니다. 지금은 보이지 않습니다. 필요하지 않다는 뜻입니까?
이전에는 "enableAdvertisingIdCollection"도 광고 정보를 수집하는 데 사용할 수있었습니다. 새 API에서 찾을 수 없습니다. 자동으로 수집 되나요?
"setDryRun"을 사용하여 데이터를 서버로 보내는 것을 비활성화 할 수 있었지만 지금은 보이지 않습니다. 앱의 디버그 버전에 대해 자동으로 이런 식으로 작동한다는 의미입니까? 모든 함수가 로그에 기록됩니까?
이전에는 "화면"을 추적 할 수있었습니다.
public void setScreenName(String name) { mGoogleAnalyticsTracker.setScreenName(name); mGoogleAnalyticsTracker.send(new HitBuilders.ScreenViewBuilder().build()); }
이제는 보이지 않지만 읽은 것처럼 자동이라고 생각하므로 어쨌든 활동 수명주기의 데이터를 보냅니다. 사실인가요?
아마도 가장 중요한 것은 이전에는 카테고리, 액션, 라벨 및 가치를 사용하여 추적 할 수있었습니다.
public void trackEvent(final String category, final String action, final String label, final long value) { mGoogleAnalyticsTracker.send(new HitBuilders.EventBuilder() .setCategory(category).setAction(action) .setLabel(label).setValue(value).build()); }
이제 번들을 사용하여 이벤트 ( "맞춤 이벤트")를 추적하는 완전히 다른 방법을 볼 수 있습니다. 예:
Bundle bundle = new Bundle(); bundle.putString(FirebaseAnalytics.Param.ITEM_ID, id); bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, name); bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "image"); mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
어떻게 작동합니까? Firebase Analytics 웹 사이트에는 어떻게 표시 됩니까? logEvent의 첫 번째 매개 변수가 Google-Analytics의 범주 매개 변수처럼 동작하도록 할 수 있다고 생각하지만 나머지는 무엇을 할 수 있고 /해야합니까? 문서에 따르면 이것은 괜찮을 것입니다.
public void trackEvent(final String category, final String action, final String label, final long value) { Bundle bundle = new Bundle(); bundle.putString("action", action); bundle.putString("label", label); bundle.putLong("value", value); mFirebaseAnalytics.logEvent(category, bundle); }
어떤 이벤트가 실제로 자동으로 (일부는 내가 사용 안된다고 말했다 있기 때문에 나는이 물어 추적되고 여기에 )? 구매가 포함됩니까? 앱 초대? 광고? 콘솔 웹 사이트에서 어디에서 볼 수 있습니까?
로그에 대해서는 새 SDK가 다음을 수행 한다고 말합니다 .
일련의 adb 명령을 사용하여 자세한 로깅을 활성화 할 수 있습니다.
adb shell setprop log.tag.FA VERBOSE adb shell setprop log.tag.FA-SVC VERBOSE adb logcat -v time -s FA FA-SVC
그 명령은 무엇을합니까? 어떻게 비활성화 할 수 있습니까? 앱의 릴리스 버전에서도 표시되는 것으로 나타났습니다 ...
새 SDK가 Google-Analytics를 대체해야합니까? 완전히 이동하는 것이 좋습니다. Google-Analytics에 업데이트가 있습니까?
많은 질문이 함께 묶여 있으므로 대부분의 질문에 간략하게 대답하겠습니다.
- Google Analytics는 tracker-id에 대해보고하고 Firebase Analytics는 애플리케이션에 대해보고합니다. google-services.json에 정의 된 애플리케이션에는 하나의 ID 만 있습니다. ID는 "google_app_id"이름 아래 google 서비스 플러그인에 의해 문자열 리소스로 변환됩니다. 앱의 모든 이벤트는이 단일 ID로보고됩니다.
- Firebase Analytics는 AdId를 자동으로보고합니다. 활성화 할 필요가 없습니다.
- dryRun 기능이 없습니다. 개발 중에 별도의 google-services.json을 사용하거나, 앱 버전을 사용하여 개발 버전을 필터링하거나, 사용자 속성을 추가하여 개발에 사용되는 앱 인스턴스를 표시 할 수 있습니다.
화면을보고 할 수 있습니다.
Bundle params = new Bundle(); params.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, "screen"); params.putString(FirebaseAnalytics.Param.ITEM_NAME, "screen name"); firebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, params);
동일한 매개 변수로 맞춤 이벤트를 기록 할 수 있습니다.
Bundle params = new Bundle(); params.putString("category", category); params.putString("action", action); params.putString("label", label); params.putLong("value", value); firebaseAnalytics.logEvent("xyz_event", params);
"ga_"접두사는 예약되어 있으며 사용하면 분석이 실패합니다. 대신 "xyz_"를 사용하십시오. 여기서 xyz는 회사의 이니셜입니다.
Do not use the category as event name unless you have very few categories you want to track. Firebase Analytics supports up to 500 event names. Logging more than that will cause some of your data to be ignored.
There is a list of reserved event names in the beginning of the FirebaseAnalytics.Event class. It roughly represents the automatic events reported.
Firebase Analytics has debug logging disabled by default. It only logs errors and warnings. If you don't enable debug logging and your app is correctly configured there are only 2 lines that are being logged when the app starts with instructions on how to enable debug logging. There is nothing to disable in production and there is no equivalent to setLogLevel(ERROR) from Google Analytics. WARN is the default logging level. You can only enable logging on individual device by running the adb command on the device). That helps you avoid shipping app in production with debug logging enabled.
Google Analytics SDK for Android and iOS is not deprecated and will be supported and updated for foreseeable future. You don't need to move away from it if you already invested using it in your app and it is meeting your needs.
Google Analytics is a freemium web analytics service offered by Google that tracks and reports website traffic.1 Google launched the service in November 2005 after acquiring Urchin. Firebase is a cloud services provider and backend as a service company based in San Francisco, California. The company makes a number of products for software developers building mobile or web applications.
How to move from google analytics to firebase analytics?
Google Analytics (GA) and Firebase Analytics (FA), despite their common name, are widely different in many aspects. While GA is a general-purpose (and more web oriented) analytics tool, Firebase was built keeping mobile in mind: therefore, the feature set is different between the two, with some things that were added in FA and things that are missing from GA.
More specifically, these are some noteworthy points when considering Firebase Analytics:
- Real-time view is missing
- Events are available after a 4-6 hours period
- Behavior Flow (from GA) is missing
- The Audiences feature a big advantage of FA and, coupled with Notifications, allows you to engage with a specific group of users
- When using Firebase Crash Reporting, an audience with users who experienced a crash is automatically created
- Funnel analysis makes much more sense than in GA, since FA is based on events and not on screen views
- Free and unlimited, except for the number of types of events (limited to 500); no limits on the volume of events per each type
- Some events are logged automatically (i.e., sessions based on Activity lifecycle)
- Relatively low methods footprint, compared to GA's methods count
- Dead-easy to setup, there is no singleton to initialize, just include the Gradle dependency and start logging events
- All-in-one console, if you plan on using other Firebase services
As to if one should consider switching from one to the other, or if to keep both in parallel, the answer is: it depends.
- If you were using GA extensively before, chances are that you would be missing some of its feature when switching completely to FA.
- However, if this is a fresh start for your project, FA is much more prone to a cross-platform mobile-oriented environment, so you may very well consider it as your own analytics tool.
On a side note, keep in mind that Firebase has just launched and Google has plans on adding more features in the coming weeks (e.g., real-time dashboard).
For tutorial you can find here https://firebase.google.com/docs/analytics/android/start/
참고URL : https://stackoverflow.com/questions/37919630/how-to-move-from-google-analytics-to-firebase-analytics
'Program Tip' 카테고리의 다른 글
Rails API : 인증을 구현하는 가장 좋은 방법은 무엇입니까? (0) | 2020.10.17 |
---|---|
C 용 컨테이너 클래스 / 라이브러리 (0) | 2020.10.17 |
svn : externals를 시작하는 방법은 무엇입니까? (0) | 2020.10.17 |
ASP.NET MVC에서 세션 상태를 비활성화하려면 어떻게해야합니까? (0) | 2020.10.17 |
비 활동에서 startActivityForResult 사용 (0) | 2020.10.17 |