Havn't found a word about my problem on the internet so lets find out if anyone has a clue here at stack? My FB tracking code is not working properly. Actualy it doesn't make any sense at all.
In my app I use both Google Analytics tracking and Facebook tracking. Whenever a certain event occur, lets call it event X, I send this via a method to both FB / GA. For example when someone upgrades to Premium version of the app:
- (void) appActivated{
....Some Google Analytics code.....
[FBSDKAppEvents logPurchase:49 currency:#"SEK"];
}
Google Analytics reports the correct number of events all the time. But Facebook reports only 60-80% of the events. For some reason it does not send / receive all events? I find it hard to belive there is something wrong with my code due to:
1. Google Analytics code works fine and is being sent from same methods.
2. Facebook Analytics is sending data but for some reason not all of it?
I am using the latest FBSDK in iOS. Same problems goes with my Android app aswell? Any idea what might be wrong?
Related
I am having a tough time while analysing store listing for my app with third party referrals. When i am analysing UTM sources under Store analysis in play console I don't see any visitor/ acquisition towards most of my UTM sources except few like "Firebase", "Google", "Other", "Undefined".
There used to be data for other UTM's(Our website, our desktop app) as well in past but not anymore. I wonder what went wrong, it might be possible that these UTM's are tracked under Other category somehow.
We don't have any api call in app to send related events to firebase, are we missing something here, may be install referral api? may be some other api mentioned here https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#general-campaigns, but we never had anything extra apart from setting up firebase in our project, I followed https://firebase.google.com/docs/android/setup.
Is it necessary to send data to google analytics in my case like mentioned here: https://developers.google.com/analytics/solutions/mobile-campaign-deep-link#campaign-tracking, I don't feel it is right as firebase anyways tracking 'visitors' without hitting any app code.
Any suggestion on how to debug it?
I don't really know if im in the correct forum, but please if not, point me in the right direction.
I have a little problem: I have setted up a campaing for downloads of the App from a client (A corporation) this campaing is setted on the objective of the first_open(Android) on firebase. I've talked with my associated account executive and he tells me we should also have another campaing with a first_open (iOS) objective.
Here is where the problem starts. The google executive tells me we should have an event called first_open (iOS) which should be a separated event from first_open (Android), but I can't find this. It's not listed as an event on firebase nor google analytics web + app, I've tryed creating this event on my own but can't seem to get it working.
If I go into firebase conversions or events, I can only see one first_open event, that I can use a filter on, and see Android/iOS independently, but I can't seem to export it in separate to Google Ads conversions. There are some events called something like this, but they show 0 conversions.
If I can use the filter on firebase to see iOS first opens, how come I cant seem to see this conversions in Ads??
Also, how come I can extract this "Conversion events" from firebase, through google ads, but I'm not able to see them on firebase nor analytics?
Thank you!
I had a similar issue. In my Firebase settings, my iOS App was missing the app id and team id. After filling in that data, I was able to setup a iOS conversations in Google Ads.
We had exactly the same issue. I have done 2 things that solve the problem.
Supplied the missing App ID in Firebase
Setup adSupport.framework in the app
To add to Mark Currie's answer -
As soon as I entered App Id and Team Id in Firebase, iOS conversions started showing in Google Ads.
For finding team id, as of today, you have to look at Apple Developer Account => Identifiers => App ID prefix
all. It looks like our Firebase analytics integration is not working as expected - we have approximately 20 users of our app, but Firebase reports over 1K.
I suspect this has to do with setting the user ID appropriately. But I'm not sure what I've done wrong - we call FirebaseAnalytics.getInstance().setUserId whenever a user signs in.
Are we supposed to call this more frequently? Say, whenever the app is opened? Am I missing some way to associate our users with their IDs in Firebase? Or am I misunderstanding something altogether?
I found the problem here, for any future searchers. The issue was the pre-launch report generated by the Google Play Console. This is causing many anonymous sessions to be reported to Firebase, since the apps are installed/reinstalled many times. This artificially inflates your user count if you are doing something like continuous deployment.
Background
Google allows to perform app-invites and also track how well they improve your app installations:
https://www.youtube.com/watch?v=UfdCNYXMC9M
The problem
I made a simple app invite, and it seems people do use it, using this code:
public static Intent getAppInviteIntent(Context context) {
return new AppInviteInvitation.IntentBuilder(title,appName).setCustomImage(imageUri).setMessage(message).setCallToActionText(download).build();
}
startActivityForResult(getAppInviteIntent(this), GOOGLE_APP_INVITES_REQUEST_CODE);
This works, but in the Analytics webpage, I can't find a way to show the statistics of the app-invite, and that's even though they say it's automatic (here). Sadly, even what I've found seem quite old and they use deprecated functions.
What I've tried
I thought that maybe it's not quite automatic (because the tutorial has some extra code for the receiver part too, here), and that we might need to add some code, as this docs say :
When the user accepts an invitation and installs the app, getInvitation(GoogleApiClient, Activity, boolean) will update the invitation state to installed and return the invitation data in an intent accessed from AppInviteInvitationResult using getInvitationIntent()
Looking at Google's sample (here), I've noticed they created 2 activities. One is the main activity, which does have a call to "getInvitation" , and another is called "DeepLinkActivity" , and handles deep links (which is probably for extra data, like coupons).
I've also found some stackOverflow questions about the tracking (like here), but all I see is that people didn't succeed tracking yet.
The questions
What is the minimal code needed in order to track the invitations and how well they work, as shown on the video? What should be configured in Analytics page itself? I don't use deep linking currently, so I don't want to use it.
It seems that Google moved the app-invites feature to "firebase" gradle repositories. Is it a must-have? What are the advantages? We currently use the previous ones ("com.google.android.gms:play-services-appinvite:..." ). The dashboard of FireBase doesn't seem to include as much UI for analytics as Google Analytics. Not to mention of app-invites.
If the answer to #1 is that I need to use "getInvitationIntent", does it have to be on the main activity of the app ? Does it have to be in an activity at all (maybe broadcastReceiver?) ?
It seems it's possible to also invite to IOS too ( as shown here and here, using "setOtherPlatformsTargetApplication"). Is this correct? How does it work? What happens when an IOS user clicks the link? What should be put into the parameter of "clientId" and where do I get it from ?
Does G+ have app-invites? If so, does it also have analytics?
Great questions. I'll do my best to answer everything. Please ask if you need clarification.
Analytics tracking requires a tracking Id that you'll need to set using setGoogleAnalyticsTrackingId(String trackingId), which I don't see in your example. This tracking Id is then handed to the downstream events that record analytics tracking events for you:
When invitations are send (both email and sms).
When the invited user accepts the invitation by clicking on the invitation link or button.
When the developer calls getInvitation()
When the developer calls convertInvitation()
So, to answer your specific questions, here goes:
Just add your tracking ID to the builder as described above, and all the tracking events will be reported. No need for a deeplink, that's optional on invites.
Yes, appinvites api is copied to firebase while retaining the original. For now they are exactly the same. Future improvements will be in firebase, so migrate when you have time.
getInvitationIntent() is called on the result returned in the callback from getInvitation(), so the callback should be within an activity. Also, since you'll only expect an invitation immediately after launch, you really only need to check in the main activity and any activity that would be launched from intent filters that trigger on the deeplink. Sounds like you don't use deeplinks, so only the main activity. Generally you should call getInvitation() from all activities that may be directly launched from an invitation, this is how you determine if your app is launched from an invitation.
Yes, invites can go cross-platform in both directions, iOS -> android, and android -> iOS. You need to define both apps in the same project in console.developers.google.com, which is necessary to associate them. If there is more than one iOS app in the project, that api call is necessary to disambiguate the iOS app that is paired with the android app. The ClientID parameter is generated in the console when you create the OAuth Client Id using the pulldown menu from credentials section.
There isn't any separate G+ invites.
Answers:
The Firebase Dynamic Links on Android documentation explains how to view the analytics data shown directly in the Firebase console. The critical step is to follow the Firebase setup instructions, most importantly:
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
The Firebase analytics integration has been streamlined from the legacy integration that required a tracking Id. Now with Firebase only setup and a call to getInvitation() are needed. No additional code or tracking ids required. Remember it takes up to 24 hours to see the results in the console. However, you can see the messages being sent immediately which is a great indication that it's working. Just enable verbose logging as described in Analytics Log Events documentation.
The Firebase and android developer documentation for appinvites are identical.
Yes, you must call getInvitation() to get analytics tracking, and do the setup as described above.
The iOS and Android equivalence apps should be in the same project. Just move them to a single project in the Firebase console. You can just remove one from it's existing project and add it to the other to make a combined project. The change should be reflected instantly.
I have been using Google Admob and Google Analytics to track my apps so far with no any issue. I currently had notification on Analytics page as below:
Missing Ecommerce Data
Property Default view is configured for Ecommerce, but no data is flowing.
Bad Event Tracking Code
(not set) entry present in reports for property xxx | Android.
Note: Seems, app tracking also stopped for last 2 days. I have not made any changes in neither Analytics configurations nor within Android app.
How can i solve this issue? Thank you.
Same problem for us, suddenly stopped tracking eCommerce data for no reason, we haven't made any code changes so i'm not sure why. I heard that Google may be phasing out classic GA since UA is out of beta but i thought they would inform us rather than making changes and telling nobody.