Have a question that has not been answered before? Feel free to flick us an email at hello@piwik.org and we shall pop the answer up here for all to see. Thanks!
The post Track Meta Pixel Events in Matomo Tag Manager appeared first on Analytics Platform - Matomo.
Meta Pixel events let you measure the actions that visitors take on your website after interacting with your Facebook or Instagram advertising. By tracking events such as purchases, registrations, and contact form submissions, you can measure conversions, build audiences, and optimise your advertising campaigns in Meta.
After you have configured the Facebook Pixel tag in Matomo Tag Manager, you can track additional visitor interactions by sending Meta standard events.
When a visitor performs an action on your website, such as clicking a button, submitting a form, or completing a purchase, Matomo Tag Manager can trigger a Custom HTML tag that calls the Meta Pixel JavaScript API (fbq) to send the appropriate event to Meta.
Meta recognises a predefined set of standard events that can be used for conversion tracking, audience building, and ad optimisation. Read the specifications for Meta pixel standard events.
This guide explains how to track these events with Matomo Tag Manager. The setup uses the Facebook Pixel tag and a new Custom HTML tag to send standard Meta events when your visitors from Facebook or Instagram perform specific actions on your website.
Before you beginEnsure the following prerequisites are in place:
Before configuring Matomo Tag Manager, decide which Meta standard event you want to report, such as Lead or Purchase.
If you are unsure which event to use, or want to configure your website using Meta’s guided setup:
Send button to submit, assign the Lead event to the Send button.
Next, you will need to configure Matomo Tag Manager to send the same Meta event when the equivalent visitor action occurs.
Configure a triggerCreate a trigger for the visitor action that should send the Meta event. This trigger will be assigned to the new Custom HTML tag created later.
The trigger should match the same interaction you identified in the Meta Event Setup Tool. For example, if you associated the Lead event with a contact form’s Send button, configure Matomo Tag Manager to fire when that form is submitted or when the Send button is clicked.
⚠ Before sending any Meta events, Configure the Facebook Pixel tag in Matomo Tag Manager. The Meta Pixel tag must fire before any Custom HTML tags that call fbq() otherwise, the event cannot be sent to Meta.
<script>
fbq('track', 'Lead');
</script>
Many Meta events support optional parameters that provide additional context, such as a Purchase event:
<script>
fbq('track', 'Purchase', {
value: 249.99,
currency: 'USD'
});
</script>
If your website exposes values such as the order total or currency through the data layer or JavaScript, first create the corresponding data layer variables in Matomo Tag Manager. You can then reference those variables in the event code:
fbq('track', 'Purchase', {
value: {{Order Total}},
currency: '{{Currency}}'
});
Save the new tag and verify the tracking configuration before publishing the container to your live site.
facebook or tr.https://www.facebook.com/tr/?id=<PIXEL_ID>>&ev=Lead orhttps://www.facebook.com/tr/?id=<PIXEL_ID>&ev=Purchaseev parameter should match the event configured in your Custom HTML tag.
If you do not see any events in Meta, check the following is setup correctly:
Once the Meta Pixel is tracking the configured event, you can repeat the setup steps to create additional Meta standard events, such as ViewContent or AddToCart, and verify each event in Meta Events Manager.
Previous FAQ: Configure the Facebook (Meta) Pixel tag in Matomo Tag Manager
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Configure the Facebook (Meta) Pixel tag in Matomo Tag Manager | 0 | 7.52 | 22-07-2026 |
| 2 | Track visitors from TikTok in Matomo | 0 | 9.19 | 29-07-2026 |
| 3 | Manually report errors with Matomo Tag Manager | 0 | 8.88 | 16-07-2026 |
| 4 | Sample configuration files for high-traffic Matomo deployments | 0 | 11.54 | 13-07-2026 |
| 5 | How to merge and unmerge crashes | 0 | 8.49 | 29-07-2026 |
| 6 | I enabled Crash Analytics but don’t see any crashes | 0 | 9.72 | 29-07-2026 |
| 7 | Manually report errors in Crash Analytics | 0 | 9.19 | 16-07-2026 |
| 8 | Understanding row limits and ‘Others’ rows in Matomo reports | 0 | 8.33 | 17-07-2026 |
| 9 | AI Chatbots Real-time report | 0 | 13.5 | 13-07-2026 |
| 10 | Полный гайд по JavaScript-коду отслеживания в Matomo. Часть 1 | 0 | 7 | 08-07-2026 |