google-analytics-sdk

Google Analytics iOS SDK “1 second sessions” (possibly background sessions?)

℡╲_俬逩灬. 提交于 2019-12-10 21:13:56
问题 Google Analytics (using iOS SDK version 3.14 and it's built in sessions tracking) is reporting a significant percentage of app sessions as 1 second. Maybe users are launching an app to view a page and (effectively) then instantly leaving the app, but that seems unlikely (that it should continue as the top use case. You think such users would stop using or uninstall.) Initially I suspected this was related to "background fetch" but when I look at a prior incarnation of the application (that

Use Google Analytics for iOS without .plist file

こ雲淡風輕ζ 提交于 2019-12-10 14:40:08
问题 According to Google's documentation (Analytics for iOS), they want you to download some auto-generated .plist file to configure your app. Unfortunately, I have multiple report suites (Debug, Release) and need to switch dynamically depending on the build. So I'm trying to do one of two things: Is there a way to totally ditch the .plist file and set all the configs dynamically? What values would one need? -OR- Can I alter the values in the Google .plist file to use variables from my project's

Xcode 7 build failed: ld: library not found for -lGoogleAnalyticsServices

半世苍凉 提交于 2019-12-10 04:08:22
问题 Every time when I open my app with Xcode I get this error: ld: library not found for -lGoogleAnalyticsServices clang: error: linker command failed with exit code 1 (use -v to see invocation) Then I need to unmark the target on the libGoogleAnalyticsServices.a file and mark it on again. After the uncheck/check of the target the app runs normally... I get 2 other warning when this happens: ld: warning: directory not found for option '-L/Users/vision/Documents/Apps/Mijn Cijfers/Mijn' ld: warning

'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

ε祈祈猫儿з 提交于 2019-12-10 01:23:37
问题 Trying to compile my project after adding some pods. While compiling it gives below error 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found Podfile.lock snippet - FirebaseCore (5.1.1): - GoogleUtilities/Logger (~> 5.2) - FirebaseDynamicLinks (3.0.2): - FirebaseAnalytics (~> 5.1) - FirebaseInAppMessaging (0.11.0): - FirebaseAnalytics (~> 5.1) - FirebaseCore (~> 5.1) - FirebaseInstanceID (~> 3.2) - GoogleUtilities/Environment (~> 5.0) - FirebaseInstanceID (3.2.1): - FirebaseCore (~> 5.1)

Memory Leak when Google Analytics sends a hit

一笑奈何 提交于 2019-12-08 21:08:32
I'm trying to use Google Analytics SDK v3.10 for iOS. I added all dependencies and headers, then in my app delegate, method : - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions , I added those lines : [[GAI sharedInstance] setDispatchInterval:20.0]; [[GAI sharedInstance] trackerWithTrackingId:@"UA-XXXXXXXX-X"]; [[GAI sharedInstance].logger setLogLevel:kGAILogLevelVerbose]; with the proper tracking id. In my landing view, method viewDidAppear, I added the lines id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker]; [tracker set

Memory Leak when Google Analytics sends a hit

淺唱寂寞╮ 提交于 2019-12-08 05:41:50
问题 I'm trying to use Google Analytics SDK v3.10 for iOS. I added all dependencies and headers, then in my app delegate, method : - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions , I added those lines : [[GAI sharedInstance] setDispatchInterval:20.0]; [[GAI sharedInstance] trackerWithTrackingId:@"UA-XXXXXXXX-X"]; [[GAI sharedInstance].logger setLogLevel:kGAILogLevelVerbose]; with the proper tracking id. In my landing view, method

Using Google Service for iOS without using GoogleService-Info.plist

China☆狼群 提交于 2019-12-06 20:10:19
问题 I am able to use both Google SignIn and Analytics using GoogleService-Info.plist. However, to reduce dependency, I want to move the information from the GoogleService-Info.plist into another .plist that contains my other information. Would this be possible? If so, how can I do this? 回答1: You can - both libraries allow you to configure them manually. You'll want to drop any references to GGLContext , and just setup the libraries directly: [GIDSignIn sharedInstance].clientID = @"YOUR_CLIENT_ID"

How to detect an iOS app install campaign inside the app

不羁的心 提交于 2019-12-06 06:06:22
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 to ask Google Analytics, Firebase or iTC/StoreKit what campaign has led to its install? Google Anlaytics

Getting (not%20set) for UTM parameters with Install Referrer- Android

拈花ヽ惹草 提交于 2019-12-06 01:21:23
问题 I am using my custom broadcast receiver as follows to track UTM parameters. <receiver android:name=".services.CustomInstallListener" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> public class CustomInstallListener extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent.hasExtra("referrer")) { String data = intent.getStringExtra("referrer"); String referrers[]

'Google/Analytics.h' file not found - XCode 7

半城伤御伤魂 提交于 2019-12-05 15:44:35
问题 I am having much trouble integrating Google Analytics SDK into my iOS project. I am using XCode 7 and targeting iOS 7. Using Swift 2.0. However I can get the sample working ok (not converting to Swift 2.0 though). I've tried both install via CocoaPods and by copying the files manually from: https://developers.google.com/analytics/devguides/collection/ios/v3/sdk-download When installing via CocoaPods I've tried both pod 'Google/Analytics' , pod 'GoogleAnalytics' and pod 'Google/Analytics', '~>