Is there a way to see how many sessions are cast to users’ TVs (e.g., from iPhone to Apple TV, or from Android to Chromecast)?
You can use an analytics solution like Google Analytics to track and count any events from your application, including CAST events.
You can see more info here about Google analytics specifically: https://developers.google.com/analytics/devguides/collection/analyticsjs/events
A simple example, modified from one at the above link, might be:
ga('send', {
hitType: 'event',
eventCategory: 'Videos',
eventAction: 'Cast',
eventLabel: 'Fall Campaign'
});
Related
I am developing an app in which payment automation is an functionality.
What is required is that Account details need to be filled by my app, so that no need of manual typing.
I know I can open app using url_launcher package, but I don't know how to pass data?
and how to map data with the different textfield of the selected app .
I am going to consider any UPI enabled payment application here and you want to pass data like reciever name, upi ID, total amount and a transactional note.
Future<UpiResponse> initiateTransaction(UpiApp app) async {
return _upiIndia.startTransaction(
app: app,
receiverUpiId: "9078600498#ybl",
receiverName: 'Md Azharuddin',
transactionRefId: 'TestingUpiIndiaPlugin',
transactionNote: 'Not actual. Just an example.',
amount: 1.00,
);
}
You can use upi_india but this is not limited to just upi_india.
You have other packages like stripe and flutter pay which also has similar functionality
I'm trying to trigger the ViewContent event (https://developers.facebook.com/docs/facebook-pixel/reference#events) using the version 0.10.1 of react-native-fbsdk. This should be registered in the panel you see in the image, but it still appears in red.
The only function the SDK gives me to launch events is the logEvent function. So I'm doing it this way:
const viewContentData = {
content_name: name,
content_category: type,
content_ids: id,
content_type: type,
value: amount,
currency,
};
yield call([AppEventsLogger, 'logEvent'], 'ViewContent', viewContentData);
Does anyone know how to make it work?
Thank you so much :)
Do you try to use it on Web or Mobile? I believe for react native you have to use mobile events SDK integration:
https://developers.facebook.com/docs/react-native/app-events
If you want to use it on the Web, all you have to do is initializing the pixel base code properly and then firing the event via fbq helper function:
https://developers.facebook.com/docs/facebook-pixel/advanced/
I would like to use offline conversion data to build a custom audience that I can match against visitors to my site.
I am currently trying to do this by:
Using the Facebook pixel (fbevents.js) to track users, passing extern_id with our unique user ID during the init call and then tracking pageviews like so:
fbq('init', '1234567890', {extern_id: UNIQUE_USER_ID});
fbq('track', 'PageView');
Later uploading offline event data with the associated extern_id of people that have made purchases
But Facebook is giving me a 0% record match rate for the offline event set (I have ~150,000 pageviews and a couple thousand purchases, if that matters). Has anybody succeeded in matching only on extern_id, or does Facebook require more user data?
I spent hours on this and from what I can gather, the offline events only work in conjunction with Facebook ads. So, your uploaded data is matched only against ads in your account and not the Facebook pixel.
You should be passing external_id instead of extern_id in the fbq init event.
fbq('init', '1234567890', {extern_id: UNIQUE_USER_ID}); // Incorrect
fbq('init', '1234567890', {external_id: UNIQUE_USER_ID}); // Correct
You can check the doc here:
https://developers.facebook.com/docs/facebook-pixel/advanced/advanced-matching
Our site publishes articles on WordPress and also provides some of these posts to Facebook Instant Articles in a feed.
I'm in the process of upgrading our site's Google Analytics code to Universal Analytics. We're using the dc.js version with display features.
On our current Facebook Instant Article template the GA code is like
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'XXXXXXXXXXXXX']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setCampSourceKey', 'itx']);
_gaq.push(['_setReferrerOverride', 'http://fbia.facebook.com']);
_gaq.push(['_trackPageview']);
I don't understand all of these settings myself. From what I read the _setDomainName value sets cookie access to the current domain only, whereas _setAllowLinker allows GA to link activity tracked on different domains.
I do know that itx is an argument we commonly append to URLs to indicate the source of clicks. And with _setReferrerOverride we set an arbitrary referrer value that allows us to separate out FBIA activity in the GA reports.
My question is, do I need to do cross-domain tracking with FBIA articles? And if so, how would I do it?
It seems that the Universal Analytics way of doing cross-domain is to specify the "other" domains you want to link to in a linker:autolink statement. But what domain would I specify for an FBIA article?
In case useful to anybody else, this is how I think the legacy GA code could be translated to Universal on FBIA tracking.
ga('create', 'XXXXXXXXXXXXX', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['xxxxx.com']);
ga('require', 'displayfeatures');
ga('set', 'campaignSource', 'Facebook');
ga('set', 'campaignMedium', 'Social Instant Article');
ga('set', 'title', ia_document.title);
ga('set', 'referrer', 'http://fbia.facebook.com');
ga('send', 'pageview');
I'm using the latest version of Google analytics for iOS (up to this post date).
The pageViews are logged and reported correctly but the events and social events aren't. Here are some snippets of my code:
#interface RootViewController : GAITrackedViewController
All my ViewControllers inherit the GAITrackedViewController
[self.tracker sendEventWithCategory:#"Twitter" withAction:#"Tweet" withLabel:#"Tweet App Info" withValue:nil];
[self.tracker sendSocial:#"Twitter" withAction:#"Tweet App Info" withTarget:nil];
I call this from my view controller to log an event of sending a tweet, but when I check my Google analytics (Engagement->Events->OverView) no events are logged. This is not real time data, I'm talking about 3 days of testing without events reported.
I'm following this guide by Google Mobile App Analytics, but when using
[tracker sendEvent]
I get errors so I use
[self.tracker sendEvent]
and I think it uses the default tracker of the app.
Any help with this problem ?
for me, the [self.tracker ...] or [tracker ...] calls did not work. I ended up using the shared instance default tracker as follows:
[[GAI sharedInstance].defaultTracker sendEventWithCategory:#"TAC_Agree" withAction:#"buttonClick" withLabel:#"" withValue:[NSNumber numberWithInt:0]];
This definitely works for me.