I send the same event to Facebooks Event Manager from FB pixel and Conversions API.
I have made sure that the event name and eventID are the exact same, and that the server event is sent after the browser event.
The events are not deduplicated in Event Manager. I have looked through the documentation but can´t find anything missing.
I have tried on several different types of events and waited more than 24 hours.
The Pixel event is sent like this;
fbq('track', 'PageView', {test: 'test'}, {eventID: 'PageView'+uniqueid});
And i use Facebook Business SDK for PHP to send server events;
Api::init(null, null, $access_token, false);
$user_data = (new UserData())
->setClientIpAddress($_SERVER['REMOTE_ADDR'])
->setClientUserAgent($_SERVER['HTTP_USER_AGENT']);
$event = (new Event())
->setEventName($eventname)
->setEventId($eventid)
->setEventTime(time())
->setEventSourceUrl($_SERVER['HTTP_REFERER'])
->setUserData($user_data);
return array($event);
}
$request = (new EventRequest($pixel_id))
->setTestEventCode('TESTXXXX')
->setEvents(create_events($eventid, $eventname));
$response = $request->execute();
Here is an example of an event that is not deduplicated;
My Answer:
> Make sure that the eventID is unique for each event. If you are using the same eventID for multiple events, Facebook may not be able to deduplicate them correctly.
> Check if there are any differences in the event parameters between the Pixel event and the Conversions API event. Even small differences in parameters can cause Facebook to treat them as separate events.
> Double-check the implementation of the Facebook Business SDK for PHP to ensure that the events are being sent correctly. You may want to log the events being sent to verify that they match the expected format.
> Contact Facebook support for further assistance if you have tried all the above steps and are still experiencing issues with event deduplication. They may be able to provide additional insights or troubleshoot the issue on their end.
Rate this post
4 of 5 based on 9513 votesComments