You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README covers installation and configuration well but leaves out the parts integrators ask about most:
Enriching events. The core value of the Conversions API is server-side user data (email, phone, external id, address). There is no example of a listener that adds these. Add an #[AsEventListener(ConversionsApiEventRaised::class)] example that sets userData->email[] and userData->externalId[] from the logged-in user, and state that normalisation and hashing are done by the SDK at send time.
Deduplication. When both client side and server side are enabled the same event is sent twice on purpose. Explain that Event::$eventId is generated in the constructor and used as eventID in the fbq() call and as event_id in the API payload, so Meta deduplicates them, and that applications creating their own ids must set the same id on both.
What is sent.PopulateRequestPropertiesSubscriber sends the full request URL including the query string ($request->getUri()) as event_source_url, the client IP (respecting trusted proxies) and the user agent. Say so, and mention framework.trusted_proxies, otherwise the IP is the load balancer's.
Suggested packages. The README tells users to install symfony/http-client and nyholm/psr7; also list them under suggest in composer.json so Packagist and composer suggest show it.
The README covers installation and configuration well but leaves out the parts integrators ask about most:
#[AsEventListener(ConversionsApiEventRaised::class)]example that setsuserData->email[]anduserData->externalId[]from the logged-in user, and state that normalisation and hashing are done by the SDK at send time.Event::$eventIdis generated in the constructor and used aseventIDin thefbq()call and asevent_idin the API payload, so Meta deduplicates them, and that applications creating their own ids must set the same id on both.PopulateRequestPropertiesSubscribersends the full request URL including the query string ($request->getUri()) asevent_source_url, the client IP (respecting trusted proxies) and the user agent. Say so, and mentionframework.trusted_proxies, otherwise the IP is the load balancer's.symfony/http-clientandnyholm/psr7; also list them undersuggestincomposer.jsonso Packagist andcomposer suggestshow it.