google-analytics-firebase

Google Analytics v4 in Android: Could not find class 'com.google.android.gms.analytics.Tracker'

人盡茶涼 提交于 2019-12-11 03:44:52
问题 I am desperately trying to integrate GA v4 in my Android app. And I followed the guide here https://developers.google.com/analytics/devguides/collection/android/v4/ And integrated Google Play Services lib as described, but it gives me Could not find class 'com.google.android.gms.analytics.Tracker But I can find classes and its namespaces in the project. I can't figure out what's happening here. 回答1: I followed also the instruction on Analytics for Android v4. But additionally I had to update

INSTALL_REFERRER not received on production

我的未来我决定 提交于 2019-12-11 02:48:50
问题 I'm not getting install referrer received on application installed from the play store. Below is my Androidmanifest.xml shows receiver which is inside <application> tag too. <receiver android:name="com.usplnew.getreferrer.CustomReceiver" android:exported="true" > <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> And below is code for Receiver public class CustomReceiver extends BroadcastReceiver { @Override public void onReceive

Flush google analytics events manually with Google Play Services

时光毁灭记忆、已成空白 提交于 2019-12-11 02:35:08
问题 Is there any way to manually flush all events in Google analytics queue, when Google Play Services is installed? There is one method in the Android GA documentation: GoogleAnalytics.getInstance(getActivity().getBaseContext()).dispatchLocalHits(); But this method doesn't work with Google Play Services - the docs say: public void dispatchLocalHits () Dispatches queued hits (view, events, or transactions) to Google Analytics if a network connection is available, and the local dispatching service

How to access Google Analytics API from a serverside background service?

我们两清 提交于 2019-12-10 17:06:11
问题 I'd like to pull in data from google analytics into an own database through an background cron job without the user having to authenticate every time. I do know how to get an Google Analytics OAuth Access Token with user interaction as I asked previously. Using OAuth won't work, since it requires user interaction. According to Google Analytics API Reference OAuth as well as an Access Token can be used to access the stats of an page once on a per session base. However I'm looking for an

screenName in XML configuration not working

烈酒焚心 提交于 2019-12-10 15:55:26
问题 I just added support for Google Analytics to my app, and I can't make <screenName> in XML configuration to work: The configuration: <?xml version="1.0" encoding="utf-8" ?> <resources> <screenName name="com...ActivityMain">Main</screenName> <screenName name="com...ActivitySettings">Settings</screenName> </resources> I Manifest, I have: <meta-data android:name="com.google.android.gms.analytics.globalConfigResource" android:resource="@xml/analytics" /> And in Application I have: synchronized

Android Studio cannot resolve symbol GoogleAnalytics v4

ぐ巨炮叔叔 提交于 2019-12-10 07:07:50
问题 I'm trying to integrate Google Analytics in my Android App, but I'm having trouble. (SEE EDIT) Following https://developers.google.com/analytics/devguides/collection/android/v4/ when I create HashMap<TrackerName, Tracker> mTrackers = new HashMap<TrackerName, Tracker>(); Android Studio tell me that cannot resolve symbol Tracker . I already use Google Play Services in my app to serve admob, so I don't understand why I cannot import com.google.android.gms.analytics.Tracker In AndroidManifest.xml

Setting Max Results in API v4 (python)

天涯浪子 提交于 2019-12-09 18:12:08
问题 In v3 of the API I'm seeing that there was a max-results parameter that could be passed to get more than 1000 records. I haven't been able to figure out how to pass that parameter in v4 of the API using python. My code looks something like below. I've commented out my best guess at max_result. def get_report(analytics): # Use the Analytics Service Object to query the Analytics Reporting API V4. return analytics.reports().batchGet( body={ 'reportRequests': [ { 'viewId': VIEW_ID, #'max_results'

How change Google Analytics account in Android Studio

ぐ巨炮叔叔 提交于 2019-12-07 23:46:31
问题 As you can see on the screenshot below, I already tested the Google Analytics with my private Google Analytics account for my private apps. File --> Project Structure .. -> Developer Service --> Analytics Now, I would like to go play around with my business apps as well and would like to enter my corporate email Google Analytics account, which is combined to that other app. How can I switch or logout here? 回答1: Remove the Analytics library dependency compile 'com.google.android.gms:play

Issues in Google Tag Manager plugin in Cordova

╄→尐↘猪︶ㄣ 提交于 2019-12-06 08:49:25
问题 Am trying to use GTM plugin for Cordova - https://github.com/kraihn/cordova-plugin-tag-manager. Am facing issues on the iOS version of my cordova app. I get warnings that the binary resource file and plist file are not found. GoogleTagManager warning: Cannot find binary resource file 'GTM-XXXXXX'. GoogleTagManager warning: Cannot find resource file 'GTM-XXXXXX.plist' GoogleTagManager verbose: loading default container from GTM-XXXXXX.json I downloaded the json file from GTM account - Admin,

How change Google Analytics account in Android Studio

百般思念 提交于 2019-12-06 08:00:52
As you can see on the screenshot below, I already tested the Google Analytics with my private Google Analytics account for my private apps. File --> Project Structure .. -> Developer Service --> Analytics Now, I would like to go play around with my business apps as well and would like to enter my corporate email Google Analytics account, which is combined to that other app. How can I switch or logout here? Remove the Analytics library dependency compile 'com.google.android.gms:play-services-analytics:8.4.0' from your build.gradle. (manually, not from module settings) To avoid errors comment