-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App Events not reaching Facebook / SKAdNetwork attribution problems #1667
Comments
I'm having same issue.
And then initializing the API When I started using the Beta 2 nothing works anymore no events, only app_launch I was expecting based only on the documentation that if I set the auto log events on I would expect to have the app installs and app launch events. But... this is not what is happening. |
+1 and in addition: Looking at the iOS 14.5 requirements put forward by Apple: https://developer.apple.com/app-store/user-privacy-and-data-use/#permission-to-track It would appear (example (4)) that an app will be required to receive the user’s permission through the AppTrackingTransparency framework if the Facebook SDK is installed. We know that setAdvertiserTrackingEnabled must be enabled in order for an app to send the app_install event automatically. @danmaas can you clarify that your Goals/Expected Results (1) means using ATT? It would be nice for clarification around this in Facebook's documentation when installing the SDK. |
No, we don't want to touch ATT. The "consent" I was referring to above is more related to GDPR, where we have to get consent even for first-party data. We made a product-level decision not to show the ATT pop-up dialog or use IDFA-based tracking, because it would be perceived very negatively by our user base. If not using ATT/IDFA means that we cannot log any in-app events, other than SKAdNetwork-based install events, then so be it. But SKAdNetwork attribution seems broken right now and I really hope we can get it working. My understanding of the Apple and Facebook docs is that it should be possible to get SKAdNetwork to feed App Install events into our iOS 14 ad campaigns, without ATT or IDFA. If I am wrong about this, please let me know! (https://developer.apple.com/app-store/user-privacy-and-data-use/#attributing-app-installations):
|
Thanks for the clarification, we are looking for the same thing. I'll let you know if I find anymore details or confirmation on anything. |
An update on SKAdNetwork - we are starting to think that the SKAdNetwork App Install counts are actually correct, and it's just that Facebook's iOS 14 campaigns are doing a terrible job of targeting users who will install our app after clicking on the ad. We usually see click-to-install conversion rates of 30-40% on other types of campaigns, but the new iOS 14 campaigns are only delivering 5-10% click-to-install rates. The above results are from about $1,000 in ad spend on iOS 14 campaigns. Is that just too little to teach the FB algorithms to find good users? We hesitate to throw more money at this without knowing whether it is likely to improve things XD. |
Experiencing the same "issue". We've increased spending for iOS 14 campaigns but the click to install conversion is terrible when compared to earlier campaigns at something like 4% or less. It's so bad that I've spent days looking through the documentation and source code of the facebook sdk only to find everything work as expected and end up in this github issue. |
We have the same use case – we would like to send events without IDFAs or other user information which could be used to identify a user. Without sending events we are not able to config them for the SkAdNetwork. Could you (@danmaas) elaborate on how you set the _implicitlyLogged flag to 1 on all events? |
@nutlike Here is the patch we use to force the _implicitlyLogged flag to 1 on all events, by adding it inside of the wrapper around
Note, due to the lack of feedback on this issue of missing conversion events, and the poor performance of our test iOS 14 ad campaigns, we have stopped advertising on Facebook for now. We shifted our resources to better-performing sources, like iOS App Store campaigns. |
@danmaas Do I understand correctly, that if one just needs SKAdNetwork data there is no need of setting any SDK flag? Thanks! |
I think SKAdNetwork install events (if not purchase events) will come through automatically, without manually setting the |
Same issue |
Hello @danmaas ,
Anything more suggestion for this? I'm really appreciate of your shared. Thank you |
|
|
Same with me, anyone knows how to resolve it ? |
I am also facing this issue. I have tried everything under the sun to get event to log and nothing is showing up in the events test page |
Same issue, I tried on many versions of Facebook SDK and it's always the same result.. no events |
Bigger picture, we're noticing that only Mobile App Install events are showing in the Ads Manager (both using the FB SDK as well as Adjust after we switched to using an MMP). Also CPMs have gone up across the board, but that seems to be a bigger problem overall due to the iOS 14 rollout |
I have the same issue. The documentation says to disable this in .plist and call after initialization but it doesn't work FBSDKSettings.setAutoLogAppEventsEnabled(true) but for both Xcode says "Type has no member 'setAutoLogAppEventsEnabled'" |
Did someone solve the problem with IOS 14+ ? |
Same issue, I tried on many versions of Facebook SDK and it's always the same result.. no events |
I am using AppsFlyer and did a Facebook integration. |
Hi @danmaas and other people who may have experienced the same issue ,
It'd be better if you could provide your App ID to my email kylinchang@fb.com and I can investigate deeper on the issue. Thanks! |
@KylinChang Hello, o have this code for initializing FBSDK in AppDelegate:
After this code, in controller I call Event method : Also in info.plist file I have this parameters: What am I doing wrong? |
Hi @Fublvckmagik , What's the issue you are having now, App Events not showing up in "Test Events" or SKAN install number issue? It seems that you don't call the method |
The |
Facebook don't receive my events Also I dint find "initializeSDK" method, just Update: |
Hi, I'm not sure if it helps, I start seeing events after completing the connection of the data origin process by sending me an email with the instructions. Isn't weird enough? |
I've also noticed custom events showing up in Overview section with filter "All Events" or "Custom Events" but not in the real time section. |
Why is so difficult to Facebook provide a SIMPLE guide about the impacts and actions needed with new Apple ATT? When ATT request is necessary? What events are impacted if not requesting ATT? |
Hi FBSDK version : 12.2.1 |
Just to contribute to this thread. |
Hi everyone, |
I'm having trouble parsing through the FB docs and convos around this, can anyone confirm/deny that you can track app installs on iOS without asking for tracking permission? The only event we want to track is app installs from FB ads, I'm not sure it's worth it if we have to prompt the user for ATT permissions. |
In my case we haven't asked for ATT and the app installs are being tracked in iOS |
hi same thing i am follow but in ios 14.8.1 version i can't see my events |
exactly this. this is all we want to track as well. do we need to ask user for ATT permissions? if so, then auto tracking app lifecycle events is basically useless, since they fire before user has had a chance to respond to ATT prompt |
Experiencing something similar. To date I have still not managed to use the "Test Events" tab successfully, despite trying everything on this thread. Additionally, I cannot use the "Configure App Events for iOS 14.5 and later Ad Optimizations" in the dashboard. I send the notification which arrives, tap it, which opens my app, and I wait. Nothing happens in the dashboard. It hangs and then gives a "Can't connect" error, with some vague "turn it off and on again"-type instructions. This needs attention IMO. |
I was eventually able to get app install events to fire without requesting ATT but it took a lot of trial/error, slogging through multiple versions of Meta docs, and github issues. This might not be 100% comprehensive but I had to add this to AppDelegate.m in didFinishLaunchingWithOptions:
and this to openUrl:
This to Info.plist:
The URL scheme is added in addition to any others you already have there. Something that tripped me up initially was leaving out the 'fb' at the beginning of the app ID in the URL scheme. As others have mentioned, be sure to be signed in to the FB app (using the same account that you use for FB Business) and have it open in the background while first trying to view test events in the event manager. |
@erikmillergalow - thanks for the response, I'm a bit concerned about this line though:
Is this not you telling Facebook that the user has consented to advertiser tracking (in other words, consenting to ATT)? |
@beaneymidnite I could be wrong but my understanding is that ATT is only needed when tracking data that will identify the user, but that the FB app install event uses SKAdNetwork to link installs to ads anonymously. See here under the first question in the FAQs: https://developer.apple.com/app-store/user-privacy-and-data-use/#attributing-app-installations |
Ah okay, you're just doing SKAdNetwork. I'm also interested in Aggregated Event Measurement, which relies on other events being sent via the Facebook SDK. Interestingly, your tips did get me one step further in the chain - I can now "set up" AEM in the dashboard under the "Configure App Events for iOS 14.5 and later Ad Optimizations" section, but it's now telling me there's no events in the last 90 days, and to check the overview tab (which has events coming in from the last 2 days, let alone 90!). |
it is unbelievably hard to make events appear at Events Manager. Spent 2 days with no success. I see events being sent via adb logcat and iPhone console however Event Manager/Test Events shows nothing. |
@beaneymidnite could you please help me, how you done with Configure App Events for iOS 14.5 and later Ad Optimizations ? I'm getting this error "We're unable to get a conversion from your app. There could be a problem with the integration of the Facebook SDK in your iOS mobile app.". |
Keeping this thread alive as spent months trying to get this to work. Tried everything above, still getting no events despite seeing them come out of the app in network requests. |
Facebook documentation on app events is very vague. It does not contain any information about ATTrackingManager which is necessary to track events. First follow all steps in the documentation. Below are the steps I have taken to successfully connect app events (iOS 15): This will bring up the following pop up:
|
Hi @DonTharaka, Don't you want to set up like this in the Info.plist,
Then after getting the user consent you have to mark them as true |
i have it worked only on simulator |
In my case everything worked once I entered the bundle identifier in the Settings > Basic > iOS. |
Any update on this? |
Is there an update on this? Still happening as of February 13 2023 |
Any update on this? |
Reopening. Still not fixed. |
Still can’t logging
Mp
…On Wed, Apr 17, 2024 at 5:17 PM rlomeli158 ***@***.***> wrote:
Reopening. Still not fixed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Reopening. Still not fixed. |
(this is a follow-up to consolidate the main questions from #1632 and #1639)
To summarize, despite trying very hard to follow all the best practices around iOS 14 App Events and install attribution, we are still failing to get events to appear in Facebook's App Events Insights panel, and failing to attribute installs to iOS 14 campaigns in Ads Manager. We are not sure if this is a code bug, or incorrect interpretation of the documentation, or maybe an issue with Facebook's internal data systems rather than the iOS SDK.
Checklist
9.0.1
)Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
12.4
Cocoapods
version1.10.0
Goals/Expected Results
[FBSDKAppEvents logEvent]
.Note: at no point is the user signing in with a Facebook account, nor do we want to touch the IDFA at all. We only want to send what is possible without an active login session and without asking for IDFA.
(Actually, I'm afraid the docs are not very clear about whether this is even possible: can we send log events to Facebook without first asking the user to sign in, or querying the IDFA? It would be nice to clarify what data can be logged, if any, without these steps.)
Actual Results
All App Events do appear in the iOS device log, when enabled via
[FBSDKSettings enableLoggingBehavior:FBSDKLoggingBehaviorAppEvents];
. This includes both automatically-logged and manually-logged events.However, we do NOT see any events in the Events Manager Test Events panel (https://business.facebook.com/events_manager2/list/app/APPID/test_events), nor the Facebook App Insights panel (https://www.facebook.com/analytics/APPID/AppEvents/), even after 1+ days of waiting.
We can get events to appear in the Test Events panel and App Insights, but only if we do two weird things that seem to contradict the documentation:
_implicitlyLogged
flag to1
on all events. This is an internal flag that the SDK normally adds only to automatically-logged events. Since automatically-logged events were occasionally appearing on the Test Events panel, we tried adding this flag ourselves, and suddenly all the events started appearing reliably (except App Install - see 2.).fb_mobile_first_app_launch
. Even though we do set[FBSDKSettings setAutoLogAppEventsEnabled:YES]
, the SDK doesn't seem to be sending its own App Install event.With the above hacks, I think we are logging app events successfully.
However, we are doubtful that iOS 14 SKAdNetwork attribution is fully working yet, since we see far fewer App Install events in the Ads Manager interface than we would expect, relative to the number of link clicks and typical conversion rates of our campaigns. (based on historical trends, we are pretty confident that our click-to-install conversion rate should be at least 30%, but in Ads Manger we only see about 10% click-to-install on iOS 14 campaigns, which seems abnormally low).
Steps to Reproduce
Here is how we are interacting with the SDK:
Info.plist, AppDelegate.m:
After receiving user consent to share data (with explicit UI in GDPR countries, otherwise implicitly):
i.e., we want to initialize the SDK and then send as much data as we possibly can, except without touching the IDFA.
After making the above 3 calls, I would expect to see events like App Install, App Launch, and our manually-logged events to start appearing in the Events Insights panel. (on Android, using the equivalent SDK calls, they indeed do appear). Also, I would expect that we should start seeing reasonable App Install counts on iOS 14 ad campaigns via SKAdNetwork, after waiting the proper 3-day period for delayed attribution.
The text was updated successfully, but these errors were encountered: