How to use standard events in the response native SDK for Facebook

The Facebook SDK has the ability to record both user events and standard events. Standard events are things like Shopping, Add to Cart, Completed Registration, etc.

Recording these standard events gives you access to certain bidding features on Facebook ads that you don’t receive without events.

I have an application that has React Native FBSDK

There are two methods for determining an event: one for purchases and one for everything else, as shown here

There is zero documentation for standard events for responding in the SDK on Github or on event tracking documents on the development platform.

Now I am trying to track standard events using their various names, as recorded in the FB documentation. I tried the following:

AppEventsLogger.logEvent('FBSDKAppEventNameCompletedRegistration'); AppEventsLogger.logEvent('CompletedRegistration'); AppEventsLogger.logEvent('Completed Registration');

All this simply creates custom events with these names, but is not recognized as standard events.

Has anyone received standard events for working with the React Native shell for the FB SDK? If so, what do you call events to get FBs to recognize them?

+7
source share
2 answers

It looks like you have to go through the strings that these standard events get an estimate for, i.e. instead of "FBSDKAppEventNameCompletedRegistration", you will need to use :. "Fb_mobile_complete_registration"

Here is the source :

Sorry if this is a little late. Hope this helps.

+6
source

Has anyone received more information on this. The documentation seems to have nothing.

0
source

Source: https://habr.com/ru/post/1012917/


All Articles