For your proposal, please provide an approximate estimate of the project duration and the price at which you can carry out this integration.
The overall task is to implement advanced user tracking with event transmission to Facebook for further formation of advertising campaigns.
General Workflow
An event is tracked
We collect data for the event
We transmit the event via Facebook Pixel
We store data in the database for further transmission via Conversions API
We form data transmission to Conversions API according to a separate regulation
* Technical requirements - according to the documentation, FB recommends using a separate cloud
** For deduplication of events in the system, we use event_time, which must be the same when transmitting data via Facebook Pixel and Conversions API
1 - Facebook Pixel
The pixel is already installed on the site. The task is to ensure that all events are tracked correctly and the necessary data is transmitted.
Tracked Events
ViewContent
AddToCart
InitiateCheckout
Purchase
ViewContent - product view
fbq('track', 'ViewContent', { parameters })
Placement
product page, main product
Parameter Description
value - selling price of the product (taking into account the discount if any)
currency = ‘UAH’
content_name - product name depending on the language
content_type = ‘product’
content_ids - product identifier
content_category - name of the parent category of the product depending on the language
event_time - event time
AddToCart - adding product to cart
fbq('track', 'AddToCart', { parameters })
Placement
product page - main product
Parameter Description (same as in ViewContent)
value - selling price of the product (taking into account the discount if any)
currency = ‘UAH’
content_name - product name depending on the language
content_type = ‘product’
content_ids - product identifier
content_category - name of the parent category of the product depending on the language
event_time - event time
InitiateCheckout - order checkout
fbq('track', 'InitiateCheckout', { parameters });
Placement
checkout page
Parameter Description
content_category = ‘checkout’
content_ids - array of product identifiers in the cart ( [‘123’, ‘456’, …] )
currency = ‘UAH’
num_items - number of products in the cart
value - current order amount
event_time - event time
Purchase - order completed
fbq('track', 'Purchase', { parameters });
Placement
thank you page for the order (order completed, we have the order number)
Parameter Description
content_category = ‘purchase’
content_ids - array of product identifiers in the cart ( [‘123’, ‘456’, …] )
content_type = ‘product’
currency = ‘UAH’
num_items - number of products in the cart
value - current order amount
event_time - event time
2 - Facebook Conversions Api
It needs to be set up from scratch.
Documentation for forming the request
https://developers.facebook.com/docs/marketing-api/conversions-api/using-the-api/
Description of request parameters
https://developers.facebook.com/docs/marketing-api/conversions-api/parameters
For events from the site sent via Conversions API, the following parameters are required
client_user_agent – User agent for the browser corresponding to this event - Link to description of client_user_agent
action_source
event_source_url
Pageview - on all pages of the site
Data collection and sending - on all pages
ViewContent - product view
Data collection and sending - product page, main product
AddToCart - adding product to cart
Data collection and sending - product page - main product
InitiateCheckout - order checkout
Data collection and sending - checkout page
Purchase - order completed
Data collection and sending - thank you page for the order (order completed, we have the order number)