Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Meta Conversions API

No security coverage Maintenance fixes only 188 sites

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.

Drupal 9–11

Ask your assistant about Meta Conversions API

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
5
Tracked since
Jul 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.1.x-dev Dev 10–11 Oct 4, 2025
1.1.0 Stable 9–11 Oct 3, 2025
1.0.0 Stable 9–10 Nov 23, 2023
1.0.0-beta1 Pre-release 9–10 Jul 12, 2023
1.x-dev Dev 9–11 Jul 12, 2023