firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.51k stars 1.44k forks source link

Dynamic link Source in Conversions for iOS is always not set #4132

Closed result0924 closed 4 years ago

result0924 commented 4 years ago

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

I can see my source/compaign/medium in BigQuery

Screen Shot 2019-10-22 at 11 43 02

On iOS can't see source in conversions will be (not set) On Android, this is working as I'd expect.

Screen Shot 2019-10-22 at 11 44 58

Let me know if you have any questions, thanks

google-oss-bot commented 4 years ago

I found a few problems with this issue:

morganchen12 commented 4 years ago

Do you also have Firebase Analytics installed?

result0924 commented 4 years ago

Do you also have Firebase Analytics installed?

Yes i install firebase analytics 6.9.0

morganchen12 commented 4 years ago

Are you able to see all of your other Analytics events? Also, have you disabled swizzling?

result0924 commented 4 years ago

Are you able to see all of your other Analytics events? Also, have you disabled swizzling?

  1. I can see other analytics events
  2. where i can check disabled swizzling

Developers who prefer not to use swizzling can disable it by adding the flag FirebaseAppDelegateProxyEnabled in the app’s Info.plist file and setting it to NO (boolean value).

Did you mean this? I didn't set FirebaseAppDelegateProxyEnabled in my info.plist

morganchen12 commented 4 years ago

@dmandar these events are supposed to be automatically logged by Analytics, right? Could the error somehow be Carthage-related?

paulb777 commented 4 years ago

These symptoms might happen if FIRAnalyticsConnector.framework was not linked into the app.

result0924 commented 4 years ago

These symptoms might happen if FIRAnalyticsConnector.framework was not linked into the app.

Screen Shot 2019-10-23 at 10 19 56

I think i have linked into the app right?

result0924 commented 4 years ago

And find some behaviors are strange We have set conversions to dynamic_link_app_open

It can't set to conversion event in debug view on iOS

Screen Shot 2019-10-23 at 10 39 50

But it can set to conversion event in debug view on Android

Screen Shot 2019-10-23 at 11 18 34

Data can query from to BigQuery

Screen Shot 2019-10-23 at 11 01 06

morganchen12 commented 4 years ago

@allenktv, do you know what could be causing the mark as conversion issue above?

result0924 commented 4 years ago

is there any update on this? thanks

morganchen12 commented 4 years ago

Hey @result0924, dmandar is on vacation and will be back to take a look at this issue soon. In the meantime can you share some debug logs from your app? You can enable debug logging by passing the following launch arguments to your app: -FIRDebugEnabled, -FIRAnalyticsDebugEnabled

result0924 commented 4 years ago

When Launch in real device

2019-11-05 15:49:32.875262+0800 HealthPass[368:19765]  - <AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2019-11-05 15:49:32.917097+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Core][I-COR000001] Configuring the default app.
2019-11-05 15:49:32.936038+0800 HealthPass[368:19765] 6.9.0 - [Firebase/Analytics][I-ACS024000] Debug mode is on
2019-11-05 15:49:32.939077+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb
2019-11-05 15:49:32.940504+0800 HealthPass[368:19598] [Crashlytics] Version 3.14.0 (144)
2019-11-05 15:49:32.940687+0800 HealthPass[368:19598] [Crashlytics] Running on iPhone9,3, 13.1.3 (17A878)
2019-11-05 15:49:32.958770+0800 HealthPass[368:19598] [Crashlytics:Crash:Reports:Event] Registered Firebase Analytics event listener
2019-11-05 15:49:32.960107+0800 HealthPass[368:19598] [Answers] Initialized
2019-11-05 15:49:32.960961+0800 HealthPass[368:19598] [Fabric] Initialized with kit versions: {
    "com.twitter.answers.ios" = "1.4.1";
    "com.twitter.crashlytics.ios" = "3.14.0";
    "io.fabric.sdk.ios" = "1.10.2";
}
2019-11-05 15:49:33.046250+0800 HealthPass[368:19598] [Fabric] [Fabric +with] called multiple times. Only the first call is honored, please pass all kits you wish to initialize
Documents Directory:  file:///var/mobile/Containers/Data/Application/04E68B0D-9600-4E98-8EF5-A25619CC514C/Documents/
2019-11-05 15:49:33.081717+0800 HealthPass[368:19598] 
---- Firebase Dynamic Links diagnostic output start ----
Firebase Dynamic Links framework version 4.0.5
System information: OS iOS, OS version 13.1.3, model iPhone
Current date 2019-11-05 07:49:33 +0000
Device locale zh-TW (raw zh_TW), timezone Asia/Taipei
    Specified custom URL scheme is com.xxxalpha and Info.plist contains such scheme in CFBundleURLTypes key.
    AppID Prefix: abcxxxxxxx, Team ID: abcxxxxxxx, AppId Prefix equal to Team ID: YES
performDiagnostic completed successfully! No errors found.
---- Firebase Dynamic Links diagnostic output end ----

2019-11-05 15:49:33.230362+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60102000 started
2019-11-05 15:49:33.248716+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2019-11-05 15:49:33.249428+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023009] Debug logging enabled
2019-11-05 15:49:33.250480+0800 HealthPass[368:19764] 6.9.0 - [Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: {
    acct = "com.google.iid.checkin-account";
    class = genp;
    gena = "com.google.iid";
    "m_Limit" = "m_LimitAll";
    "r_Attributes" = 1;
    "r_Data" = 1;
    svce = "com.google.iid.checkin-service";
}
2019-11-05 15:49:33.250698+0800 HealthPass[368:19764] 6.9.0 - [Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: {
    atag = {length = 18, bytes = 0x636f6d2e676f6f676c652e6969642d7c4b7c};
    class = keys;
    "r_Ref" = 1;
    type = 42;
}
2019-11-05 15:49:33.250870+0800 HealthPass[368:19764] 6.9.0 - [Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: {
    atag = {length = 18, bytes = 0x636f6d2e676f6f676c652e6969642d7c507c};
    class = keys;
    "r_Ref" = 1;
    type = 42;
}
2019-11-05 15:49:33.251113+0800 HealthPass[368:19764] 6.9.0 - [Firebase/InstanceID][I-IID009000] No keypair info is found with tag com.google.iid-|K|
2019-11-05 15:49:33.251197+0800 HealthPass[368:19764] 6.9.0 - [Firebase/InstanceID][I-IID009006] There's no legacy keypair so no need to do migration.
2019-11-05 15:49:33.251244+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Messaging][I-FCM002000] FIRMessaging library version 4.1.5
2019-11-05 15:49:33.251314+0800 HealthPass[368:19764] 6.9.0 - [GULReachability][I-REA902003] Monitoring the network status
2019-11-05 15:49:33.251408+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2019-11-05 15:49:33.251689+0800 HealthPass[368:19764] 6.9.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
2019-11-05 15:49:33.251906+0800 HealthPass[368:19764] 6.9.0 - [GULReachability][I-REA902003] Monitoring the network status
2019-11-05 15:49:33.269818+0800 HealthPass[368:19773] [Answers] Answers is disabled. Cleaning up.
2019-11-05 15:49:33.273071+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS029014] Successfully parsed a configuration. Version: 1568759418013895
2019-11-05 15:49:33.273300+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023016] Analytics is ready to receive events
Firebase registration token: fLcWkBhJuis:APA91bHns4Yn8MRNJBogR8uhbR43xe5Dm12hGAk2z7FjgiXYd_LXihcno9oCWdy6zZvt6JPerJu-oEENPBt_xJWqlzRmX1Cg6ThCefvp-e9EATppA_1jSeY-BDSHMv-tkMWJ7peDHXp5

2019-11-05 15:49:33.319273+0800 HealthPass[368:19764] 6.9.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2019-11-05 15:49:33.319528+0800 HealthPass[368:19764] 6.9.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2019-11-05 15:49:33.339561+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2019-11-05 15:49:33.340008+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2019-11-05 15:49:33.341863+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2019-11-05 15:49:33.343747+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -585.4295550584793
2019-11-05 15:49:33.343957+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -585.4295550584793
2019-11-05 15:49:33.344083+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023012] Analytics enabled
2019-11-05 15:49:33.344238+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: user_mode, guest
2019-11-05 15:49:33.345077+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: user_mode, guest
2019-11-05 15:49:33.362158+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: MainViewController, 6931823011647459741
2019-11-05 15:49:33.362626+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: MainViewController, 6931823011647459741
2019-11-05 15:49:33.362903+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: MainViewController, 6931823011647459741
2019-11-05 15:49:33.363101+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: MainViewController, 6931823011647459741
2019-11-05 15:49:33.363392+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS031009] Set screen name and screen class: Uploaded_Report, ReportViewController
2019-11-05 15:49:33.364943+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: ReportViewController, 6931823011647459742
2019-11-05 15:49:33.365140+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: ReportViewController, 6931823011647459742
2019-11-05 15:49:33.372430+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023075] Removing user property. Name: user_id (_id)
2019-11-05 15:49:33.372462+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023078] User property removed. Name: user_id (_id)
2019-11-05 15:49:33.372771+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2019-11-05 15:49:33.372925+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2019-11-05 15:49:33.373083+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = MainViewController;
    ga_screen_id (_si) = 6931823011647459741;
}
2019-11-05 15:49:33.373499+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = MainViewController;
    ga_screen_id (_si) = 6931823011647459741;
}
2019-11-05 15:49:33.421340+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = MainViewController;
    ga_screen_id (_si) = 6931823011647459741;
}
2019-11-05 15:49:33.427882+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9357870817184448
2019-11-05 15:49:33.427932+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): 0.9357870817184448
2019-11-05 15:49:33.427974+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
    ga_event_origin (_o) = auto;
    ga_previous_class (_pc) = MainViewController;
    ga_previous_id (_pi) = 6931823011647459741;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:33.428027+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_previous_class (_pc) = MainViewController;
    ga_previous_id (_pi) = 6931823011647459741;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:33.435612+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_previous_class (_pc) = MainViewController;
    ga_previous_id (_pi) = 6931823011647459741;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:33.442688+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023027] Do not schedule an upload task. Task already exists. Will be executed in seconds: 0.9196990728378296
2019-11-05 15:49:33.443005+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023033] Starting data upload
2019-11-05 15:49:33.444039+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023037] No data to upload
2019-11-05 15:49:33.444274+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023126] Fetching configuration from the server
2019-11-05 15:49:33.454299+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS900001] Downloading data. Host: https://app-measurement.com/config/app/1:56524182683:ios:34940d7ee18a43ad?platform=ios&app_instance_id=15B8D3D13CD14AE3872225D2B93E726C&gmp_version=60102
2019-11-05 15:49:33.454338+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: app, view_uploaded_report, {
    ga_event_origin (_o) = app;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:33.454361+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: view_uploaded_report, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:33.460547+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: view_uploaded_report, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:33.465201+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023027] Do not schedule an upload task. Task already exists. Will be executed in seconds: 0.8966281414031982
We have 1 reports
2019-11-05 15:49:33.717708+0800 HealthPass[368:19766] Connection 7: received failure notification
2019-11-05 15:49:33.717760+0800 HealthPass[368:19766] Connection 7: failed to connect 12:8, reason -1
2019-11-05 15:49:33.717784+0800 HealthPass[368:19766] Connection 7: encountered error(12:8)
2019-11-05 15:49:33.719884+0800 HealthPass[368:19766] Task <EDC99121-9233-47A7-9B0B-EFFB97681F0C>.<2> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2019-11-05 15:49:33.723598+0800 HealthPass[368:19598] [ProcessSuspension] 0x1093e55f0 - ProcessAssertion::processAssertionWasInvalidated()
2019-11-05 15:49:33.724733+0800 HealthPass[368:19598] [ProcessSuspension] 0x1093e5650 - ProcessAssertion::processAssertionWasInvalidated()
2019-11-05 15:49:33.914305+0800 HealthPass[368:19760] 6.9.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/config/app/1:56524182683:ios:34940d7ee18a43ad?platform=ios&app_instance_id=15B8D3D13CD14AE3872225D2B93E726C&gmp_version=60102
2019-11-05 15:49:34.386384+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2019-11-05 15:49:34.386576+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2019-11-05 15:49:34.386824+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023033] Starting data upload
2019-11-05 15:49:34.387152+0800 HealthPass[368:19764] 6.9.0 - [Firebase/Analytics][I-ACS023034] Network operation is pending. Ignoring upload request
2019-11-05 15:49:34.769622+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023127] Fetched configuration. Status code: 304
2019-11-05 15:49:34.770494+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023131] Configuration has not been modified. Using the same configuration. Code: 304
2019-11-05 15:49:34.786616+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023033] Starting data upload
2019-11-05 15:49:34.792915+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 335145;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = -1473404855236959504;
}
2019-11-05 15:49:34.797653+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = -1473404855236959504;
}
2019-11-05 15:49:34.799398+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: lifetime_user_engagement (_lte), 5997380
2019-11-05 15:49:34.800501+0800 HealthPass[368:19760] 6.9.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: lifetime_user_engagement (_lte), 5997380
2019-11-05 15:49:34.801263+0800 HealthPass[368:19760] 6.9.0 - [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: session_user_engagement (_se), 335145
2019-11-05 15:49:34.801956+0800 HealthPass[368:19760] 6.9.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: session_user_engagement (_se), 335145
2019-11-05 15:49:34.804699+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 533
2019-11-05 15:49:34.805615+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 226, 1572939586913
2019-11-05 15:49:34.816093+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = MainViewController;
    ga_screen_id (_si) = 6931823011647459741;
}
2019-11-05 15:49:34.820528+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_previous_class (_pc) = MainViewController;
    ga_previous_id (_pi) = 6931823011647459741;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:34.822830+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: view_uploaded_report, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:34.826456+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 566
2019-11-05 15:49:34.827041+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 227, 1572940173363
2019-11-05 15:49:34.833652+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 921.9761848449707
2019-11-05 15:49:34.835199+0800 HealthPass[368:19772] 6.9.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1572940174833, <APMPBMeasurementBatch: 0x2814cce30>
2019-11-05 15:49:34.861076+0800 HealthPass[368:19760] 6.9.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
Dynamic link object has no url, <FIRDynamicLink: 0x280cd93c0, url [(null)], match type: none, minimumAppVersion: N/A, match message: (null)>
2019-11-05 15:49:34.909780+0800 HealthPass[368:19760] 6.9.0 - [Firebase/Analytics][I-ACS023001] Deep Link does not contain valid required params. URL params: {
    dismiss = 1;
    "is_weak_match" = 1;
}
2019-11-05 15:49:34.943081+0800 HealthPass[368:19765] 6.9.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2019-11-05 15:49:35.351771+0800 HealthPass[368:19764] [] tcp_input [C2.1:3] flags=[R] seq=2032097935, ack=0, win=0 state=CLOSED rcv_nxt=2032097935, snd_una=4255487461
2019-11-05 15:49:35.352199+0800 HealthPass[368:19764] [] tcp_input [C2.1:3] flags=[R] seq=2032097935, ack=0, win=0 state=CLOSED rcv_nxt=2032097935, snd_una=4255487461
2019-11-05 15:49:35.377579+0800 HealthPass[368:19765] 6.9.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2019-11-05 15:49:35.382892+0800 HealthPass[368:19765] 6.9.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -1.019296050071716
2019-11-05 15:49:35.383140+0800 HealthPass[368:19765] 6.9.0 - [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -1.019296050071716
2019-11-05 15:49:35.399354+0800 HealthPass[368:19765] 6.9.0 - [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2019-11-05 15:49:35.399963+0800 HealthPass[368:19765] 6.9.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2019-11-05 15:49:40.361149+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2019-11-05 15:49:40.361554+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2019-11-05 15:49:40.361728+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2019-11-05 15:49:40.361957+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2019-11-05 15:49:40.362205+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023144] App will resign active state. Scheduling data upload
2019-11-05 15:49:40.362411+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023145] Background task started. Task ID: 7
2019-11-05 15:49:40.362574+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023033] Starting data upload
2019-11-05 15:49:40.362662+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023037] No data to upload
2019-11-05 15:49:40.362807+0800 HealthPass[368:19773] 6.9.0 - [Firebase/Analytics][I-ACS023142] Cancelling background upload task. Task ID : 7
2019-11-05 15:49:40.364358+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    engagement_time_msec (_et) = 6964;
    ga_event_origin (_o) = auto;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:40.364407+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 6964;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:40.393863+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    engagement_time_msec (_et) = 6964;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:40.402957+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.8986479043960571
2019-11-05 15:49:40.403399+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): 0.8986479043960571
2019-11-05 15:49:40.404101+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, app_background (_ab), {
    ga_event_origin (_o) = auto;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:40.407247+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:40.415061+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen (_sn) = Uploaded_Report;
    ga_screen_class (_sc) = ReportViewController;
    ga_screen_id (_si) = 6931823011647459742;
}
2019-11-05 15:49:40.422383+0800 HealthPass[368:19766] 6.9.0 - [Firebase/Analytics][I-ACS023027] Do not schedule an upload task. Task already exists. Will be executed in seconds: 0.8789077997207642
2019-11-05 15:49:40.972980+0800 HealthPass[368:19598] Can't end BackgroundTask: no background task exists with identifier 11 (0xb), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.

When oepn dynamic links in simulator

2019-11-05 15:54:34.522420+0800 HealthPass[58429:843586] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2019-11-05 15:54:34.522758+0800 HealthPass[58429:843586] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service

2019-11-05 15:54:34.650288+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, ga_campaign (_cmp), {
    campaign = ios_test_custom_domain;
    ga_event_origin (_o) = auto;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:34.652764+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: ga_campaign (_cmp), {
    campaign = ios_test_custom_domain;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:34.700073+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: ga_campaign (_cmp), {
    campaign = ios_test_custom_domain;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:34.702280+0800 HealthPass[58429:843926] 6.9.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.8341599702835083
2019-11-05 15:54:34.702782+0800 HealthPass[58429:843926] 6.9.0 - [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): 0.8341599702835083
2019-11-05 15:54:34.702933+0800 HealthPass[58429:843926] 6.9.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: fdl, dynamic_link_app_open, {
    campaign = ios_test_custom_domain;
    ga_event_origin (_o) = fdl;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:34.703776+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023058] Conversion event is under real-time daily limit. Marking the event as real-time. Event name, parameters: dynamic_link_app_open, {
    campaign = ios_test_custom_domain;
    ga_event_origin (_o) = fdl;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:34.704090+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023059] Conversion event is not subject to real-time daily limit. Marking the event as real-time. Event name, parameters: dynamic_link_app_open, {
    campaign = ios_test_custom_domain;
    ga_event_origin (_o) = fdl;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:34.704199+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: dynamic_link_app_open, {
    campaign = ios_test_custom_domain;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = fdl;
    ga_realtime (_r) = 1;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:34.707443+0800 HealthPass[58429:843926] 6.9.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: dynamic_link_app_open, {
    campaign = ios_test_custom_domain;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = fdl;
    ga_realtime (_r) = 1;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:34.708404+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS023027] Do not schedule an upload task. Task already exists. Will be executed in seconds: 0.8279669284820557

2019-11-05 15:54:35.055357+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2019-11-05 15:54:35.058098+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2019-11-05 15:54:35.058638+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: user_mode, guest
2019-11-05 15:54:35.059213+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: user_mode, guest
2019-11-05 15:54:35.147417+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023075] Removing user property. Name: user_id (_id)
2019-11-05 15:54:35.147675+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023078] User property removed. Name: user_id (_id)
2019-11-05 15:54:35.647497+0800 HealthPass[58429:844208] 6.9.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2019-11-05 15:54:35.647715+0800 HealthPass[58429:844208] 6.9.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2019-11-05 15:54:35.647874+0800 HealthPass[58429:844208] 6.9.0 - [Firebase/Analytics][I-ACS023033] Starting data upload
2019-11-05 15:54:35.648890+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: ga_campaign (_cmp), {
    campaign = ios_test_custom_domain;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:35.649720+0800 HealthPass[58429:844208] 6.9.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: dynamic_link_app_open, {
    campaign = ios_test_custom_domain;
    ga_conversion (_c) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = fdl;
    ga_realtime (_r) = 1;
    medium = beta;
    source = ios;
}
2019-11-05 15:54:35.650485+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 540
2019-11-05 15:54:35.650623+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 44, 1572940474537
2019-11-05 15:54:35.750135+0800 HealthPass[58429:844208] 6.9.0 - [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 16.05250787734985
2019-11-05 15:54:35.750297+0800 HealthPass[58429:844208] 6.9.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1572940475750, <APMPBMeasurementBatch: 0x600000276bd0>
2019-11-05 15:54:35.751319+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2019-11-05 15:54:35.797280+0800 HealthPass[58429:844628] 6.9.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2019-11-05 15:54:35.847660+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2019-11-05 15:54:35.849068+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.3118870258331299
2019-11-05 15:54:35.849204+0800 HealthPass[58429:844635] 6.9.0 - [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.3118870258331299
2019-11-05 15:54:35.852539+0800 HealthPass[58429:844208] 6.9.0 - [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2019-11-05 15:54:35.852741+0800 HealthPass[58429:844208] 6.9.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled

Sorry for only can show debug log in simulator when open dynamic links

dmandar commented 4 years ago

Am seeing the campaign event being logged in the simulator but not the in the main app. Investigating.

allenktv commented 4 years ago

@result0924 Just to make sure, you have dynamic_link_app_open set as a conversion event in the firebase console?

result0924 commented 4 years ago

@allenktv Our settings are like this.

Screen Shot 2019-11-11 at 10 25 26

Is there anything we should pay special attantion to?

allenktv commented 4 years ago

Do you have separate projects for your Android and iOS apps in the console? If so, you will need to mark dynamic_link_app_open as a conversion for both of the apps.

result0924 commented 4 years ago

Do you have separate projects for your Android and iOS apps in the console? If so, you will need to mark dynamic_link_app_open as a conversion for both of the apps.

Our Android and iOS apps belong to the same Firebase project. Therefore they share the same conversion events.

螢幕截圖 2019-11-12 10 53 47

As can be seen here, dynamic link related events were actually logged as conversions.

螢幕截圖 2019-11-12 11 04 19

The problem is that none of the conversions were properly attributed to the UTM parameters we set for the dynamic links.

螢幕截圖 2019-11-12 11 05 13
allenktv commented 4 years ago

Thank you.

I just want to re-iterate so I understand correctly: the problem seems to be different from what was originally mentioned, and that the dynamic_link_app_open events are correctly being marked as conversions, however they are not being properly attributed to the UTM parameters that you set? Is this correct?

Another question: Are you seeing the _cmp event regularly before the dynamic_link_app_open event?

sotrosh commented 4 years ago

We have the same problem: we share mobile game's url with utm source (iOS & Android) but Firebase tracks Android only.

Here are examples of url: App Store: https://apps.apple.com/app/apple-store/id123456789?pt=1234567&ct=poster&mt=8

Google Play: https://play.google.com/store/apps/details?id=com.mycompanyname.mygamename&referrer=utm_source%3Dposter

P.S. the product developed in Unity 2019.2

steventure commented 4 years ago

Hi @allenktv, I work with @result0924. The dynamic_link_app_open events are counted as conversions in the Firebase console, but in DebugView, they are not flagged as expected. We have provided a screenshot here: https://github.com/firebase/firebase-ios-sdk/issues/4132#issuecomment-545243561

And in the Firebase console, these dynamic_link_app_open events (or any other conversions) are not properly attributed to the UTM parameters we set for the Dynamic Links, as can be seen here: https://github.com/firebase/firebase-ios-sdk/issues/4132#issue-510418329

Regarding the _cmp event, examining the debug log when running the app in the simulator, we regular see a ga_campaign (_cmp) event before the dynamic_link_app_open event. The debug log is provided here: https://github.com/firebase/firebase-ios-sdk/issues/4132#issuecomment-549682198

allenktv commented 4 years ago

Thank you. I have created an internal tracker for this at b/144590500, and we will update this when we have more information. In the mean time, could you provide your app ID? It should be something like com.{}.healthpass.

result0924 commented 4 years ago

Thank you. I have created an internal tracker for this at b/144590500, and we will update this when we have more information. In the mean time, could you provide your app ID? It should be something like com.{}.healthpass.

Our bundle identifier is com.h2.healthpass.beta thanks~

steventure commented 4 years ago

Hi @allenktv, we would like to know if there has been any update on the issue. We were hoping that we could use Firebase for both our marketing and analytics needs, but if Dynamic Links doesn't work as advertised, we would have to start considering other options such as Branch.io or AppsFlyer.

morganchen12 commented 4 years ago

Hey all, sorry for the slow follow-up on this issue. We've seen this reported internally by a partner as well. This looks like a bug in Dynamic Links. @dmandar can provide more details when he is back from vacation.

dmandar commented 4 years ago

Internal bug b/144590500 is tracking this. @allenktv , can you provide more info once available?

oluc4s commented 4 years ago

This problem finish ? I'm in contact direct with firebase support and this is the big problem with iOS, My enterprise is using firebase in Android app and work perfect but when we use in iOS app, this error happens.

FirebaseAnalytics mFirebaseAnalytics = FirebaseAnalytics.getInstance(LoginActivity.this); Bundle bundle = new Bundle(); bundle.putString(FirebaseAnalytics.Param.METHOD, "testValidatPassword"); bundle.putString(FirebaseAnalytics.Param.CP1, login_email.getText().toString()); bundle.putString(FirebaseAnalytics.Param.SOURCE, "ANDROID"); mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.LOGIN, bundle);

Analytics.logEvent(AnalyticsEventLogin, parameters: [ AnalyticsParameterMethod: "Login", AnalyticsParameterCP1: "\(User.getPanelist().getEmail())", AnalyticsParameterSource:"ios" ])

morganchen12 commented 4 years ago

Hey all, we're still working on this issue. It doesn't look like an issue in the Analytics client SDK. If you're encountering this issue, can you share your bundle identifier?

result0924 commented 4 years ago

We had removed DynamicLinks, so will close this issue. thanks for your help~