google-analytics

are multiple broadcast receivers legal in android?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 04:09:52
Is this true? Only one BroadcastReceiver class can be specified per application. Should you need to incorporate two or more BroadcastReceivers from different SDKs, you will need to create your own BroadcastReceiver class that will receive all broadcasts and call the appropriate BroadcastReceivers for each type of Broadcast. http://code.google.com/apis/analytics/docs/mobile/android.html#google-play-tracking There is no mention of this in the manifest documentation for <receiver/> http://developer.android.com/guide/topics/manifest/receiver-element.html The quoted passage is from the

Import Objective-c framework into Swift framework (Google Analytics + Cocoapod)

大兔子大兔子 提交于 2019-12-04 03:37:45
I'm trying to centralize my commonly used Swift code into a framework, and part of that code uses Google Analytics. I brought in Google Analytics as a Cocoapod, but I can't access it from the new framework like I did from the original project because it's Objective-C and there's no bridging header support in frameworks [I'm using Swift 1.2]. The line of code I normally have in the bridging header that makes all of this work is: #import <Google/Analytics.h> Where exactly do I put this in my project to make this all work like it did before in the bridging header? What I found in Apple's

Session control with Google Analytics API v3 for iOS?

大兔子大兔子 提交于 2019-12-04 03:02:45
I just replaced GA implementation with API v3, and found this useful session managing feature: https://developers.google.com/analytics/devguides/collection/ios/v3/sessions Since I implemented, every session is measured 00:00:00. Did anybody managed to use this? Or something is messed in my client code. (the time interval based session calculations gives inaccurate data for my needs) Rob I was having the same problem and the issue was that once the start session value was applied it was applied to all future analytic events. This would mean that every event you send would start a new session

How do I delete user analytics data from Firebase using userDeletionRequests:upsert?

让人想犯罪 __ 提交于 2019-12-04 02:52:40
问题 Problem Description My Android app collects data via Google Analytics for Firebase. For privacy reasons, users must be able to wipe their data off the Firebase servers, should they choose to do so. The app requests a deletion by forwarding its Firebase APP_INSTANCE_ID to my own server. This server has been prepared in advance with credentials, from my personal Google account (via oauth2), for managing the Firebase project. The server authenticates with www.googleapis.com , and, using the

Command ignored. Unknown target: undefined when setting Custom Dimension in Google Analytics tracking code

微笑、不失礼 提交于 2019-12-04 02:49:28
I am setting up a Custom Dimension in my Google Analytics Tracking Code, however I am seeing a strange error in the Chrome Console with the Google Analytics Debugger switched on. This is my code which is fired on every page. I am reporting to a regional account as well as a global/rollup account and I have created two trackers to achieve this. <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window

Disable Google Analytics when in development

雨燕双飞 提交于 2019-12-04 02:38:55
My question is pretty simple: is there any way for Google Analytics to be disabled automatically when the application is signed with the debug certificate? Means it should be active only in release version. Thank you in advance. If you're using ADT 17 and above, you can utilize the BuildConfig class: if(BuildConfig.DEBUG) { GoogleAnalytics googleAnalytics = GoogleAnalytics.getInstance(getApplicationContext()); googleAnalytics.setAppOptOut(true); } The BuildConfig class is automatically generated like R.java is. It only contains the DEBUG boolean, which is set to true by default, and to false

'ErrorType' is not convertible to 'NSError'

為{幸葍}努か 提交于 2019-12-04 01:58:47
I have an error with Google Analytics: 'ErrorType' is not convertible to 'NSError'; did you mean to use 'as!' to force downcast? It happen when I'm trying to call 2 times createScreenView I do this: override func viewDidLoad() { let tracker = GAI.sharedInstance().defaultTracker tracker.set(kGAIScreenName, value: "Demande Gratuite") var builder = GAIDictionaryBuilder.createScreenView().build() as! [NSObject : AnyObject] tracker.send(builder) ... } @IBAction func Valider(sender: AnyObject) { ... let trackerv = GAI.sharedInstance().defaultTracker trackerv.set(kGAIScreenName, value: "Demande

Google Analytics and the __utm.gif file

徘徊边缘 提交于 2019-12-04 01:28:33
问题 When using Google Analytics and using the newer ga.js file, is the __utm.gif file needed in your root directory of your web site? I do see a call being made from my browswer to the file on google-analytics.com (http://www.google-analytics.com/__utm.gif?...), but in the past I was told that it needed to exist in the root of the site. Does this still hold true? Could you please provide a reference? 回答1: If you are using the new version of the tracking code ( ga.js ), the only thing you need to

Google Analytics V3 for Android: Service unavailable (code=1), using local store

て烟熏妆下的殇ゞ 提交于 2019-12-04 00:57:32
I've implemented GAv3 in my app for Android as it described in official tutorial. I'm getting the following warnings in logcat: W/GAV3 ( 3031): Thread[GAThread,5,main]: Service unavailable (code=1), will retry. I/GAV3 ( 3031): Thread[GAThread,5,main]: No campaign data found. W/GAV3 ( 3031): Thread[Service Reconnect,5,main]: Service unavailable (code=1), using local store. There is high-speed internet access, tracking id is set properly. And I see no statistics for my devices. Tested on Android 2.3 and 4.3.1. I get this error message as well in my app, but Google Analytics works fine, I can see

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

耗尽温柔 提交于 2019-12-04 00:56:09
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 the log: 04-30 13:05:55.303 29266-29266/com.example.app W/GAV3﹕ Thread[main,5,main]: bool configuration