Download the PHP package hirale/openmage-meta-conversions without Composer
On this page you can find all versions of the php package hirale/openmage-meta-conversions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package openmage-meta-conversions
Hirale Meta Conversions API Module
A module for integrating Meta Conversions API, sending events from server side.
For duplicate events, you can consult this page https://developers.facebook.com/docs/marketing-api/conversions-api/deduplicate-pixel-and-server-events
If you are using javascript to send pixel events, You can get event_id like this.
Supported Events
AddToCartAddToWishlistCompleteRegistrationInitiateCheckoutPurchaseSearchViewContentPageViewViewCart
You can check more events in the events section.
Install
Requires hirale/queue ^3.0
(pulled in automatically).
Maho (26.5+):
OpenMage (20.17+, PHP 8.3+) — one-time tweaks first; details in the hirale/queue README:
Usage
Setup
- This module requires the hirale/queue module — configure its backend first (System > Configuration > Hirale > Queue).
- Generate an access token. See https://developers.facebook.com/docs/marketing-api/conversions-api/get-started.
- Go to system config
System > Configuration > Sales > Meta API > Conversions API. Insert the parameters from step 1, save.
Debug
Enable Debug Mode in system config, then check var/log/meta_conversions.log.
Each processed queue message logs two entries: the event batch (envelopes +
custom data — user_data is deliberately never written to logs, and PII is
already SHA-256 hashed before it even reaches the queue) and the Graph API
response.
Upgrading
- The access token is now stored encrypted (
adminhtml/system_config_backend_encrypted). After upgrading, re-enter and save the token once in system config. - The queue message schema changed (one message now carries all events of a request, and PII is hashed before enqueueing). Let the queue worker drain pending metaconversions messages before deploying the upgrade; messages enqueued by the old version cannot be processed by the new handler.
License
The Open Software License v. 3.0 (OSL-3.0). Please see License File for more information.
All versions of openmage-meta-conversions with dependencies
hirale/queue Version ^3.0 || dev-master
facebook/php-business-sdk Version *
jaybizzle/crawler-detect Version ^1.2