google-analytics-firebase

Android google analytics integration error

血红的双手。 提交于 2019-12-01 03:25:31
When i am trying to get tracker in my activity it show error that -this method is undefine "getactivity()" in google analytic v4 // Get tracker. Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()) .getTracker(TrackerName.APP_TRACKER); If you haven't done so already, create a class MyApplication extends Application for your app, and make sure you add it to your manifest as below (the property that matters here is android:name, I've removed the other xml properties for clarity). <application android:name="mypackagename.MyApplication" ... > Then, in your MyApplication class, create

Google Analytics v4 - Data not showing on dashboard

二次信任 提交于 2019-11-30 13:23:03
问题 I've been working on integrating Google Analytics v4 into my application. I've followed this : https://developers.google.com/analytics/devguides/collection/android/v4/ however, my analytics dashboard isn't displaying any data. Here is how I've set it up in my application file: private static final String PROPERTY_ID = "UA-*******-*"; public enum TrackerName { APP_TRACKER, // Tracker used only in this app. GLOBAL_TRACKER, // Tracker used by all the apps from a company. eg: roll-up tracking.

Is google-services.json confidential?

孤街浪徒 提交于 2019-11-30 04:37:45
Following the guide on setting up Google Analytics in an Android app ( https://developers.google.com/analytics/devguides/collection/android/v4/ ) I am left wondering if this google-services.json file can safely be committed into source code versioning and pushed to a public GitHub repository or if this file may contain credentials or secrets. I cannot find a definite answer elsewhere, but I can see that sample apps both commit the file ( https://github.com/google/climb-tracker/blob/master/mobile/google-services.json ) and others have added the file to their .gitignore. It should be considered

Analytics Reporting API V4 Client Library for .NET

筅森魡賤 提交于 2019-11-29 20:17:37
I'm trying to get some data from our google analytics instance and I'd like to use the Analytics Reporting API V4 Client Library for .NET ( https://developers.google.com/api-client-library/dotnet/apis/analyticsreporting/v4 ) so that I can bake some of this data into an administration site we have built. I'm having trouble finding any examples of using this code and the documentation seems to be incredibly sparse. I would like to use a service account to authorize as we only need to view data associated with the analytics account which we control. If anyone could provide some sample code or

Is google-services.json confidential?

妖精的绣舞 提交于 2019-11-29 02:29:37
问题 Following the guide on setting up Google Analytics in an Android app (https://developers.google.com/analytics/devguides/collection/android/v4/) I am left wondering if this google-services.json file can safely be committed into source code versioning and pushed to a public GitHub repository or if this file may contain credentials or secrets. I cannot find a definite answer elsewhere, but I can see that sample apps both commit the file (https://github.com/google/climb-tracker/blob/master/mobile

Android - Using Google Analytics v4 Campaign Measurement

喜你入骨 提交于 2019-11-28 21:59:07
I have implemented Google Analytics Campaign Measurement according to this guide . Then I want to test if everything works good by following this guide . I have added these on AndroidManifest.xml : <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <meta-data android:name="com.google.android.gms.analytics.globalConfigResource" android:resource="@xml/global_tracker" /> <!-- Used for Google Play Store Campaign Measurement-->; <service android:name="com.google.android.gms.analytics.CampaignTrackingService" /> <receiver android:name=

Do I need android.permission.WAKE_LOCK for Google Play Services if I only release in Google Play Store?

与世无争的帅哥 提交于 2019-11-28 11:59:57
I am trying to integrate Google Analytics for Android. As per the documentation here , it asks to add android.permission.WAKE_LOCK (provides the comment note below). I dont understand it clearly. If I am releasing the app ONLY in the Google Play Store , do I still need this? I really do not want to ask users for an additional permission if this is not absolutely necessary. <!-- Optional permission for reliable local dispatching on non-Google Play devices --> <uses-permission android:name="android.permission.WAKE_LOCK" /> In particular, I do not understand what this note actually means here :

enableAutoActivityTracking not automatically tracking activities?

孤街醉人 提交于 2019-11-28 11:11:12
I'm currently initializing my Google Analytics tracker as follows: GoogleAnalytics analytics = GoogleAnalytics.getInstance(context); Tracker mGATracker = analytics.newTracker(context.getString(R.string.ga_code)); mGATracker.setSessionTimeout(300); mGATracker.enableAutoActivityTracking(true); It works fine for sending custom events and such, though I'm not seeing any auto activity tracking (looking under Behavior -> Events -> Screens in GA). Am I not able to enable this setting in this way? Can you also make sure you call enableAutoActivityReports on GoogleAnalytics class? I know that the calls

analytics v4 uncaught exceptions not working

送分小仙女□ 提交于 2019-11-28 05:19:07
问题 My app_tracker.xml <string name="ga_trackingId">UA-XXXX....</string> <string name="ga_logLevel">verbose</string> <bool name="ga_autoActivityTracking">true</bool> <bool name="ga_reportUncaughtExceptions">true</bool> My setup code in Activity private void setupGoogleAnalytics() { MyApp app= (MyApp) getApplication(); Tracker myTracker=app.getTracker(MyApp.TrackerName.APP_TRACKER); myTracker.enableAutoActivityTracking(true); GoogleAnalytics.getInstance(this).enableAutoActivityReports(app); } My

Do I need android.permission.WAKE_LOCK for Google Play Services if I only release in Google Play Store?

前提是你 提交于 2019-11-27 06:39:22
问题 I am trying to integrate Google Analytics for Android. As per the documentation here , it asks to add android.permission.WAKE_LOCK (provides the comment note below). I dont understand it clearly. If I am releasing the app ONLY in the Google Play Store, do I still need this? I really do not want to ask users for an additional permission if this is not absolutely necessary. <!-- Optional permission for reliable local dispatching on non-Google Play devices --> <uses-permission android:name=