Facebook Conversions API

Verze:

08. 11. 2023

Zodpovědná osoba:

Dominik Šlechta

Documentationhttps://developers.facebook.com/docs/marketing-api/conversions-api/
Projects and implemented events:

Briol - ViewContent, AddToCart, Purchase, PageView, InitiateCheckout - 8654927
Dogtrace - ViewContent, AddToCart, Purchase, PageView, InitiateCheckout - 10555393
Fencee - ViewContent, AddToCart, Purchase, PageView, InitiateCheckout - 10555384

PageView: sending of this event from the queue is included in the JAVASCRIPT_BOTTOM or JAVASCRIPT TOP (or just look for translations that contain PageView). It is necessary to remove it from the translation(the line where the event is sent) and send it like other events, so that it is easy to set the eventId, which must be the same for both the PageView event from the frontend and the PageView event from the backend.

Checkout: send from OrderInfo only after receiving addresses from the backend (dogtrace, briol and fencee can be seen)

ViewContent: watch out for the strengthening of product ids. On some e-shops we have it so that some (if not all idk) products cannot be bought without ticking some variant. These products are not even in the feed, only their variants, so always send from the product detail the product with the variants that are selected by default (it's for example on brioche), otherwise it won't pair properly with the feed.