google-analytics-sdk

Analytics in iOS App - Request user consent

核能气质少年 提交于 2021-01-02 07:54:34
问题 I'm debating whether to include (Google) analytics in my iOS app. Obviously I would like the analytics data, but my concern is whether to simple advise the user that data is being collected, or to specifically request their consent. Is specific consent required, or can one simple inform the user via a loading page or website privacy policy page? Apple has a rule on consent, but does this necessarily translate into displaying a dialogue box with a Agree/Disagree buttons? Thanks! 回答1: As I

Why Google analytics query response total user count varying with dimensions?

血红的双手。 提交于 2020-07-10 07:00:39
问题 Pulling data from google analytics using google-api npm. When I tried query for a particular date 2020-05-01 using Query Explorer , total user is 204. When adding medium ga:medium the total count is 205. I'm querying with source,medium,pagePath,channelGrouping,deviceCategory,and date as dimensions. So the total users count is near to 300. I'm saving the data from response of this query. I need to to show the total user for a day. How can I handle this? Query is below const res = await

Why total users differ in Google analytics when using dimensions?

时间秒杀一切 提交于 2020-06-01 06:21:56
问题 I tried analytics query using https://ga-dev-tools.appspot.com/query-explorer/ Issue happens when I'm adding dimensions in the query. I need to query data for some dimensions and need to save in my database. Query 1 Result 1 Query 2 Answer 2 I am saving the second queried data to the database. So when I need the total users for a particular date, here 2025-05-26, its 277 from Second query. but the actual value showing 275 which is from query 1. How can I handle this? 回答1: The fact that the

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

How to detect an iOS app install campaign inside the app

梦想与她 提交于 2019-12-22 12:19:08
问题 I would like to find out in my iOS app if the app was installed due to an ad campaign link. Google Analytics is doing this and it is tracked on their analytics web page. iTunes Connect is doing this too and it is also tracked on the iTC web page. I'm looking now for a way to get this information inside the app. When the app first starts i want to check if it was installed because the user was sent to the App Store by a campaign link and what campaign id it was. Is there a way for an iOS app

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:

Google Analytics on iOS: events not tracked

浪尽此生 提交于 2019-12-19 05:37:07
问题 I added Google Analytics SDK to my project, following the provided instructions on the guide by Google. However, when I try to track some events, this is the debug output: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { […] // Google Analytics [GAI sharedInstance].trackUncaughtExceptions = YES; [GAI sharedInstance].dispatchInterval = 20; [[[GAI sharedInstance] logger] setLogLevel:(PADEV ? kGAILogLevelVerbose : kGAILogLevelError)];

Swift 2 / iOS 9 - libz.dylib not found

余生长醉 提交于 2019-12-17 15:16:34
问题 I'm using some external codes from google in my new Swift 2.0 project that required "libz.dylib" in earlier versions. After updating to the new XCode / the new SDK. XCode is now unable to import the libz.dylib and throws some errors Undefined symbols for architecture i386: "_deflate", referenced from: +[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o) "_deflateEnd", referenced from: +[GAICompressionUtil gai

Firebase google-services.json with multiple projects?

試著忘記壹切 提交于 2019-12-12 15:36:34
问题 For our app I am using two different firebase projects: Live: Contains the live iOS & Android app Test: Contains all our iOS & Android testing apps As far as I could see the google-services.json (Android) contains the firebase project information and all related apps (as "client"). Is it supported to add a second "project_info" into this file? 回答1: Why don't you try android application flavors, for that Google just included support for flavors on version 2.0 of the play services plugin. Since

How to count newUsers per device ? Google Analytics

梦想与她 提交于 2019-12-12 00:14:17
问题 I am using google analytics in my ios/android apps. I need to count the following: new downloads : when user download the application from the store for the first time. reDownload : when user download the application from the store after uninstalling it. here is an example: when "user A" download the application from the store for the first time then it count as new download . when "user A" delete the application then after some time "user A" download the application again from the store ,