Meta Pixel (Facebook).
The pixel integration makes it possible to measure various standard events from the order module. By enabling the integration, events are sent to the FBQ tag that is already present on the page.
The following three events are supported: ViewContent
, AddToCart
and Purchase
.
Installation
To enable the events, modify the Gifty script by adding the fbq property and setting it to true.
The events are sent to the Meta pixel on pages where the order module is displayed. The Meta pixel must already be installed on those pages.
Events
The events ViewContent
, AddToCart
and Purchase
are supported. Below you will find when we'll send the event and what data the event contains.
Event | When | Properties |
---|---|---|
ViewContent | Order module viewed | currency, content_category |
AddToCart | Product (gift card or package deal) added to the order | value, currency, content_ids, content_name, content_type, contents |
Purchase | After placing an order | value, currency, content_type, contents, num_items |
ViewContent
An example of data that is sent when the order module is viewed.
AddToCart
An example of data that is sent when a product is added to the order.
Purchase
An example of data that is sent once an order has been placed.