c15t
/
C15T Logo
Frameworks
Welcome to c15t Docs
Introduction to Consent Management (c15t)
AI Tools Integrations
OSS
Contributing to c15t.com
License
Building Privacy Tools in the Open
Legal
Cookie Policy
Privacy Policy
C15T Logo
HomeFrontendIntegrationsSelf HostChangelog
xbskydiscordgithub1.4k
c15t
/
C15T Logo
Frameworks
Welcome to c15t Docs
Introduction to Consent Management (c15t)
AI Tools Integrations
OSS
Contributing to c15t.com
License
Building Privacy Tools in the Open
Legal
Cookie Policy
Privacy Policy
home-2Docs
chevron-rightIntegrations
chevron-rightMeta-pixel

Meta Pixel

Track conversions and build audiences for Facebook and Instagram advertising campaigns.

Meta Pixel (formerly Facebook Pixel) is Meta's conversion tracking and audience targeting tool for Facebook and Instagram advertising. It tracks user actions, measures ad effectiveness, builds custom audiences, and optimizes ad delivery. By default, c15t loads this script based on marketing consent.

This script persists after consent is revoked because it has built-in consent management. When consent changes, c15t updates Meta's internal consent state rather than removing the script entirely.

Adding the Meta Pixel to c15t

import { metaPixel } from '@c15t/scripts/meta-pixel';

configureConsentManager({
  // ... 
  scripts: [
    metaPixel({
      pixelId: '123456789012345',
    }),
  ],
});

metaPixelEvent

You can use the metaPixelEvent function to track events. This is a wrapper around the fbq function that the Meta Pixel script uses.

To learn more about Meta Pixel's standard events, see the Meta Pixel documentation.

import { metaPixelEvent } from '@c15t/scripts/meta-pixel';

metaPixelEvent('Purchase', { value: 10.0, currency: 'USD' });

Types

MetaPixelOptions

Property
Types

Script

Property
Types

StandardEventParams

Property
Types
C15T Logo
Leverage native React components for seamless integration and high performance in a robust Consent Management solution that empowers your development team while prioritizing privacy and compliance.
Product
  • Documentation
  • Components
Company
  • GitHub
  • Contact
Legal
  • Privacy Policy
  • Cookie Policy
c15t