How to dynamically change content depending on data from Facebook analytics? - facebook

Facebook have deprecated their app notifications API so there is no way to push content to a users phone based on segments anymore, correct me if I'm wrong.
The problem is that I want to analyse Facebook analytic data programatically and display different products to my customers based on how they use the app, to do this I need access to Facebook analytics through a PHP SDK or JavaScript SDK. How do I access Facebook analytics programatically? I can't find anything in their PHP SDK which would let me do this.
Furthermore, I want to push notifications to specific segments of users, now that Facebook have deprecated their app notifications API, how can this be accomplished?
Could it be worth switching to Firebase / Google analytics, would these services allow me to accomplish these tasks?
Thanks

Analytics is primarily about post-event analysis, vs real-time optimization. All of the products you mention focus on post-event analysis and don't support you reading data out for a single individual (i.e. the current user), through an API or otherwise.

Related

Is it possible to embed Google Analytics eCommerce dashboard into swift application

I'm building a swift app with the purpose of showing GA ecommerce sales from multiple vendors on my website. Each vendor can register on the app and then the access of their sales data will be granted to their user so they can follow their sales.
The ecommerce tracking is preformed by Google Analytics so is there any way where I can embed my eCommerce dashboards onto my swift app?
You can not.
There's no such API available for that intent, the way you want it. You must use theirs...
I am very sorry to tell you, but its is the plain truth.
Welcome!

Codename One - Facebook Marketing API

I was looking for a way to integrate my CodenameOne app with Facebook. Particularly to collect data aimed to improve the adds shown on Facebook to users who have, for example, installed the app. What I found for integration with Facebook on CN1 is (mainly) this https://www.codenameone.com/javadoc/com/codename1/social/FacebookConnect.html
This seems useful for publishing photos or posts to Facebook as a user, but not for gathering data as I need it. Is there a way to access this part of the Facebook SDK in CN1? If there isnĀ“t is this planned for the future?
The connect API is designed for authorization and authentication which need to be native. From that point on you can use the token against the standard Facebook Graph API.
I'm not really familiar with the marketing API but does it require functionality from the native SDK which isn't available in the current SDK?

How do we figure out to track facebook app installs to a specific marketing campaign and associated that with our own internal user ID?

This seems like a pretty basic need but I am unsure how to do it. Use case:
Company pays FB $$$ for mobile app install.
User clicks on facebook add to install your app
User starts the app. The code in the initialization function (appDidFinishLaunchingWithOptions on IOS) calls FBAppEvents activateApp]
Presumably somewhere in the
Facebook SDK the IDFA is sent to facebook.
Facebook correlates
the IDFA with the facebook app events to figure out what facebook
add was clicked. This data is then fed to facebook analytics so you
can see what campaign was used.
What I need is that after step 5 completes a way to figure what user ID's are associated with the specific facebook campaign. We would use this in our own internal tools to measure the campaign success. Preferably I would do this on the mobile end and send up the campaign source. Alternatively, we could do it server side. But I just don't see a way to get at the campaign data.
You could use Deferred Deep Linking with a parameter flagging the campaign install source. You'd miss out on view-through attribution (you could use Ads Manager to scale it up in aggregate), but it'd get you some user-level tracking.

Tracking Real-Time Visitors on a URL

Google Analytics provides 'real-time' active visitor count for specific pages/urls. I don't think they expose that through the API. Is anyone aware of a tool that I can use to keep track of real-time active visitors for specific pages on my site?
Thanks.
Now, Google has launched new API- Google Real Time API, which provides this facility. with this you can extract similar data.
try : https://developers.google.com/analytics/devguides/reporting/realtime/v3/devguide

How to go about building an iPhone app that accesses a website with a custom UI?

I don't quite know how to explain this but I want to build an app that can access a website like, for example, Facebook, but I don't actually want it to be Facebook's website in the sense that I want to design the UI. There is a couple of apps like this already in the app store, one being called "Facebook Touch HD". I have managed to get an app to access Facebook with UIWebView, but it just goes to Facebook's mobile website, obviously.
Look at the Facebook IOS SDK.
You probably want to fetch data from Facebook using its APIs. Facebook actually offers a library for iOS, so you may want to check it out.
In general, this applies to any site that offers an API. Usually you can use NSURLConnection to make requests to get the data you're interested in (check the specific API's documentation for details); then you have parse that data (most services output data in XML or JSON).