Facebook Conversion API Setup (Analyst Solaiman)
Facebook Conversion API Setup (Analyst Solaiman)
com/document/d/1a8phYS4Qbkq5Uv1o7lYZOi_tcsX2wMDskE-qcatG208/
Browser-Side Tracing
Page View Event Setup
Parameter Name Value
event_name page_view
Trigger view_item
Trigger add_to_cart
InitiateCheckout Event Setup
Parameter Name Variable Name Value
event_name InitiateCheckout
content_type product_group/ product
content_name CJS - product names function() {
var itemsArray = {{dlv -
ecommerce_items}};
Trigger begin_checkout
Purchase Event Setup
Parameter Name Variable Name Value
event_name Purchase
content_type product_group/ product
content_name CJS - product names function() {
var itemsArray = {{dlv -
ecommerce_items}};
Trigger purchase
Server-Side Tracing
Google Tag Configuration Settings Variable
Variable Value
server_container_url Server URL
send_page_view true/false
Variables
Variable Value
Event id user-defined variable with custom template
First party cookie _fbp
First party cookie _fbc
Event Time function() {
return Math.round(new Date().getTime() / 1000);
}
view_item event according to GA4 schema
Required parameters Value
event_name view_item
event_id {{Event id}}
x-fb-ck-fbp {{fbp}}
x-fb-ck-fbc {{fbc}}
event_time {{Event Time}}
first_party_collection True
x-fb-cd-content_type product
x-fb-cd-content_name {{dlv - item_name}}
x-fb-cd-content_ids {{dlv - item_id}}
value {{dlv - item_price}}
Currency {{dlv - currency}}
items {{ ecommerce.items }}
Variabls
dlv - email orderData.customer.billing.email
dlv - phone orderData.customer.billing.phone
dlv - first name orderData.customer.billing.first_name
dlv - last name orderData.customer.billing.last_name
dlv - address orderData.customer.billing. address_1
dlv - country orderData.customer.billing.country
dlv - city orderData.customer.billing.city
dlv - postal code orderData.customer.billing.postcode
dlv - transaction_id ecommerce.transaction_id
dlv - shipping ecommerce.shipping
dlv - tax ecommerce.tax
dlv - affiliation ecommerce.affiliation
dlv - coupon ecommerce.coupon