Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Meta Conversions API

192 sites No security coverage Drupal 9–11
View on drupal.org

This module integrates your Drupal site with the Meta Conversions API. It allows you to send events like PageViews to Meta, with options to enable/disable specific events and integrate with consent management systems.

Allows integrating with Meta Conversions API.

Features

  • Out of the box comes with a PageView event.
  • Allows enabling/disabling each event and declaring new events.
  • Uses hooks to control event triggering, for integration with cookie banners.

Post-Installation

  1. Use composer to require the module and make sure facebook/php-business-sdk has also been installed.
  2. Go to the settings page and enter the Access Token and Pixel ID from Facebook.

Additional Requirements

Uses Facebook's PHP Business SDK.

Usage

Consent

To require consent, you must implement hook_meta_conversions_api_allowed() (for example, checking a cookie).

It is also recommended to override the Drupal.meta_conversions_api.allowedCallback function in your own JavaScript library, as this will avoid unnecessarily making requests to the server.

Adding events

You can implement hook_meta_conversions_api_event_names() to add your own events. This is only necessary if you intend on making it possible to disable the event.

You can rename existing events with hook_meta_conversions_api_event_names_alter().

You can send your own events with the sendRequest() method of the MetaClient service.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2025
Latest release
10 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.1.x-dev Dev 10–11 Oct 4, 2025
1.1.0 Stable 9–11 Oct 3, 2025