google-analytics-firebase

Android “ Could not find method android.app.Notification$Builder.setLocalOnly ”

倾然丶 夕夏残阳落幕 提交于 2020-01-03 15:56:11
问题 I'm an Android Beginner. Nowadays, I'm testing Google Analytics and I met the following log : Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza what is mean and what I have to do? 回答1: setLocalOnly is available on API Level 20 and above . May I know that do you include Android Support Library v4 or AppCompat v7 to your app yet? It might helps. I believe that Google Play Services will use

Android “ Could not find method android.app.Notification$Builder.setLocalOnly ”

Deadly 提交于 2020-01-03 15:56:10
问题 I'm an Android Beginner. Nowadays, I'm testing Google Analytics and I met the following log : Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza what is mean and what I have to do? 回答1: setLocalOnly is available on API Level 20 and above . May I know that do you include Android Support Library v4 or AppCompat v7 to your app yet? It might helps. I believe that Google Play Services will use

Google Analytics for Android v4 - Automatic Screen Measurement not working?

 ̄綄美尐妖づ 提交于 2020-01-02 02:10:08
问题 I finally got around to trying out Google Analytics v4. Actually, it's my first time using GA at all, so I'm not quite as familiar with the way things are done. In any case, I managed to get the MobilePlayground sample to build and it mostly works - except for the Automatic Screen Measurement feature The XML config file in the sample is just like in the docs, so I shouldn't have to edit anything to get that part to work. But I don't see those screen views in the GA console. <!-- Enable

How to configure dry run and log level options via XML in Google Analytics v4 SDK for Android?

若如初见. 提交于 2020-01-01 08:19:12
问题 The parameters documentation for the XML configuration file used by the Google Analytics v4 SDK (as found in the Google Play Services 4.3.23 release) says that ga_dryRun and ga_logLevel are valid attributes in the tracker file. Here is my res/xml/default_tracker.xml : <?xml version="1.0" encoding="utf-8"?> <resources> <bool name="ga_dryRun">true</bool> <string name="ga_logLevel">verbose</string> </resources> When I set this config file on a new tracker and run my app, I see the following in

GoogleAnalytics HitBuilders.TimingBuilder

五迷三道 提交于 2019-12-31 07:05:09
问题 I'm using GA for an Android App. I'm trying to use user timings to report how much time has passed for some actions in my code, so what I basically do is this: At some point in the code I get System.currentTimeMillis() , at another point I do it again and subtract the latter from the former to get how much time has passed. I then report it to GA like this: long time1 = System.currentTimeMillis(); ... long time2 = System.currentTimeMillis(); long timingValue = time2 - time1; tracker.send(new

Maximum number of Event Action created in Google analytics

本秂侑毒 提交于 2019-12-25 03:12:40
问题 I have a question related with google analytics. First I am using free account of google analytics and using Measurement protocal. I am using this because I want to track desktop applications. I want to know how many Event Action we can create which is shown under Behavior / Events / Top Events and Then Event Action. For more specific information please see in below image. I am asking this question because I have to deploy this solution on 12000 customers and so it will create atleast 12000

How to return the total pageview using Google Analytics SDK?

99封情书 提交于 2019-12-25 01:45:21
问题 I am able to return the pageviews for a page. But the API returns those pageviews separated by source. So for page /this-page-slug/ it returns X amount of views for direct, Y for referral, Z for mobile, W for none and so on. I want to get the total pageviews for all sources per path. How can I do that? This is the function that I am using to get the results: function getResults($analytics, $profileId) { // Calls the Core Reporting API and queries for the number of sessions // for the last

Google analytics API v4 max results

喜你入骨 提交于 2019-12-23 12:35:35
问题 Can someone please help me for Google analytic API V4: how to pass: max-result parameter with this class: Google_Service_AnalyticsReporting I am unable to find relevant function to assign max-result parameter value. 回答1: Based on https://stackoverflow.com/a/38922925/1224827 , the parameter you're looking for is pageSize : The correct name of the parameter you are looking for is: pageSize. The Reference Docs provide the full API specifications. def get_report(analytics): # Use the Analytics

Google Analytics - NullPointerException in Test

陌路散爱 提交于 2019-12-23 09:31:59
问题 I'm getting the following NPE in a Robolectric test on a Travis build-server, and I'm having trouble pinpointing why. I'm unable to reproduce this issue locally. Anybody know what causes onServiceConnected to be called? That might help me pinpoint the issue. From what I can tell this is a Google Play Services - Google Analytics issue. java.lang.NullPointerException at com.google.android.gms.analytics.c$a.onServiceConnected(Unknown Source) at com.google.android.gms.analytics.c$a

Google Analytics Automatic Activity Detection - can you exclude a single activity from this?

谁都会走 提交于 2019-12-21 04:55:09
问题 Automatic activity detection is great - except my MainActivity is a bunch of different fragments with a nav drawer (like Google Play Music or the Play Store). I am using manual screen hitting to track the fragments in that activity. Therefore, an automatic screen hit for my MainActivity is meaningless and pollutes my stats. Can I exclude my MainActivity from being tracked in this manner? Reference: https://developers.google.com/analytics/devguides/collection/android/v4/screens#automatic 回答1: