eCommerce Facebook Pixel
Програмний модуль для системи Odoo "eCommerce Facebook Pixel"
Module Features
The event ViewContent
To activate the Facebook Pixel event ViewContent:
- Go to the Website - Facebook - Quick Setup menu.
- Select the website if you use multi-website in your Odoo.
- Activate the standard event ViewContent.

The event ViewContent code activates when someone visits a product web page's URL.
In automatic mode the event has the following properties:
- content_type: product
- content_name: the product name
- content_category: the product website category name
- content_ids: the list of product template or product variant ids (it can be defined in the Setup Wizard on the Automatic Properties tab)
- value: the product template sale price
- currency: the website default currency

The event Search
To activate the Facebook Pixel event Search:
- Go to the Website - Facebook - Quick Setup menu.
- Select the website if you use multi-website in your Odoo.
- Activate the standard event Search.

The event Search code activates on the product search results webpage when someone has made product search.
In automatic mode the event has the following properties:
- search_string: entered search string
- content_type: product
- content_ids: the list of product template or product variant ids (it can be defined in the Setup Wizard on the Automatic Properties tab)
- currency: the website default currency

The event AddToCart
To activate the Facebook Pixel event AddToCart:
- Go to the Website - Facebook - Quick Setup menu.
- Activate the standard event AddToCart.

The event AddToCart code will be added on the product page. It will be fired on the clicking button Add to cart.
In automatic mode the event has the following properties:
- content_type: product
- content_name: the product name
- content_category: the product website category name
- content_ids: the list of product template or product variant ids (it can be defined in the Setup Wizard on the Automatic Properties tab)
- value: the product template sale price
- currency: the website default currency

The module also adds the event AddToCart to the webpage /shop (product list). To enable this feature activate the option Add to Cart in the Customize website menu.

The event InitiateCheckout
To activate the Facebook Pixel event InitiateCheckout:
- Go to the Website - Facebook - Quick Setup menu.
- Activate the standard event InitiateCheckout.

The event InitiateCheckout code will be added on the Cart page. It will be fired on the clicking button Process Checkout.
In automatic mode the event has the following properties:
- content_type: product
- content_ids: list of product template or product variant ids (it can be defined in the Setup Wizard on the Automatic Properties tab)
- contents: list of value pairs of product template (or product variant) id and product quantity
- value: the total amount of products in the Cart
- currency: the default pricelist currency
- num_items: number of product lines in the Cart

The event AddPaymentInfo
To activate the Facebook Pixel event AddPaymentInfo:
- Go to the Website - Facebook - Quick Setup menu.
- Activate the standard event Add Payment Info.

The event AddPaymentInfo code activates when payment information is added and the visitor clicks the Next button on the billing address webpage.
In automatic mode the event has the following properties:
- value: the order total amount
- currency: the order pricelist currency
- content_type: product
- content_ids: list of product template or product variant ids (it can be defined in the Setup Wizard on the Automatic Properties tab)
- contents: list of value pairs of product template (or product variant) id and product quantity

The event Purchase
To activate the Facebook Pixel event Purchase:
- Go to the Website - Facebook - Quick Setup menu.
- Activate the standard event Purchase.

The event Purchase code will be added on the Confirmation page. It will be activated on the visiting the final page of the checkout process.
In automatic mode the event has the following properties:
- value: the total amount of a Sale Order
- currency: the Sale Order pricelist currency
- num_items: number of product lines in the Sale Order
- content_type: product
- content_ids: list of product template or product variant ids (it can be defined in the Setup Wizard on the Automatic Properties tab)
- contents: list of value pairs of product template (or product variant) id and ordered quantity

Product IDs in parameters
You can choose what ids do you want to send by Facebook Pixel in the parameters content_ids and contents: product templates or product variants.
Select the value Product Template ID to send product templates ids or Product ID for product variant ids.

Watch the Video Tutorial
Additional Information
- Create and install a Facebook pixel: https://www.facebook.com/business/help/952192354843755
- Specifications for Facebook pixel standard events: https://www.facebook.com/business/help/402791146561655
- Set the value and currency of your Facebook pixel standard event: https://www.facebook.com/business/help/392174274295227
- How do I confirm that my Facebook pixel is working? https://www.facebook.com/business/help/218844828315224