> ## Documentation Index
> Fetch the complete documentation index at: https://docs.masivo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Facebook Pixel

> Learn how to integrate Facebook Pixel with Masivo CDP for enhanced conversion tracking and customer insights

## What is Facebook Pixel Integration?

The Facebook Pixel integration allows you to track customer events, purchases, and conversions from Masivo directly to Facebook Pixel. This integration enables you to measure the effectiveness of your Facebook advertising campaigns and create custom audiences based on your loyalty program data.

## Key Features

<CardGroup cols={2}>
  <Card title="Event Tracking" icon="target">
    Track customer events, purchases, and conversions in real-time to Facebook
    Pixel
  </Card>

  <Card title="Conversion Optimization" icon="trending-up">
    Optimize Facebook ad campaigns based on actual customer behavior and
    purchases
  </Card>

  <Card title="Custom Audiences" icon="users">
    Create Facebook custom audiences based on loyalty program activities
  </Card>

  <Card title="Attribution Tracking" icon="link">
    Track customer journey and attribution across Facebook and your loyalty
    program
  </Card>
</CardGroup>

## Integration Type

### Facebook Pixel as Destination

When configured as a destination, Masivo sends customer events to Facebook Pixel:

* **Customer Events**: Registration, identification, and engagement events
* **Purchase Events**: Transaction data with product details and values
* **Custom Events**: Loyalty program specific events and behaviors
* **Page Views**: Customer interaction tracking

## Data Flow

<Steps>
  <Step title="Event Collection">
    Customer events and purchases are collected in Masivo through various
    touchpoints
  </Step>

  <Step title="Event Mapping">
    Events are mapped to Facebook Pixel standard events (Purchase,
    CompleteRegistration, ViewContent)
  </Step>

  <Step title="Data Processing">
    Customer data is processed and PII is hashed for privacy compliance
  </Step>

  <Step title="Pixel Tracking">
    Events are sent to Facebook Pixel for conversion tracking and audience
    building
  </Step>
</Steps>

## Supported Event Types

<AccordionGroup>
  <Accordion title="Customer Events">
    * **CUSTOMER/USER/IDENTIFY** → CompleteRegistration - Customer registration
      and profile creation events - User identification and authentication events
  </Accordion>

  <Accordion title="Purchase Events">
    * **PURCHASE/TRANSACTION** → Purchase - Transaction data with product
      details - Purchase amounts, currencies, and quantities
  </Accordion>

  <Accordion title="Engagement Events">
    * **EVENT/TRACK** → ViewContent - Customer behavior and engagement events -
      Custom loyalty program activities
  </Accordion>

  <Accordion title="Page Events">
    * **PAGE/PAGEVIEW** → ViewContent - Page view tracking and navigation events
    * Customer journey tracking
  </Accordion>
</AccordionGroup>

## Data Mapping

<Card title="Event Mapping" icon="arrow-right">
  <AccordionGroup>
    <Accordion title="User Data">
      * Email (hashed) - Phone (hashed) - External ID - Client IP - User Agent -
        Facebook Click ID (fbc) - Facebook Browser ID (fbp)
    </Accordion>

    <Accordion title="Custom Data">
      * Product IDs and names - Product categories and brands - Order IDs and
        values - Currency and quantities - Search terms - Custom properties
    </Accordion>
  </AccordionGroup>
</Card>

## Privacy & Compliance

<CardGroup cols={2}>
  <Card title="PII Protection" icon="shield">
    Email and phone numbers are automatically hashed before sending to Facebook
  </Card>

  <Card title="GDPR Compliance" icon="check-circle">
    Supports Facebook's data processing options for GDPR compliance
  </Card>

  <Card title="Test Events" icon="flask">
    Optional test event codes for development and testing environments
  </Card>

  <Card title="Opt-out Support" icon="user-x">
    Respects customer opt-out preferences for data sharing
  </Card>
</CardGroup>

## Benefits

<CardGroup cols={2}>
  <Card title="Enhanced Attribution" icon="target">
    Track the complete customer journey from Facebook ads to loyalty program
    engagement
  </Card>

  <Card title="Campaign Optimization" icon="trending-up">
    Optimize Facebook ad campaigns based on actual loyalty program conversions
  </Card>

  <Card title="Lookalike Audiences" icon="users">
    Create lookalike audiences based on your most valuable loyalty program
    customers
  </Card>
</CardGroup>

## Use Cases

<CardGroup cols={2}>
  <Card title="Conversion Tracking" icon="target">
    Track loyalty program sign-ups and purchases from Facebook traffic
  </Card>

  <Card title="Retargeting" icon="refresh-cw">
    Retarget customers who engaged with your loyalty program but didn't convert
  </Card>

  <Card title="Audience Building" icon="users">
    Build custom audiences based on loyalty program tier and engagement
  </Card>

  <Card title="Campaign Testing" icon="flask">
    Test different Facebook ad creatives and audiences using loyalty program
    data
  </Card>
</CardGroup>

## Next Step

<CardGroup cols={2}>
  <Card title="Setup Guide" icon="wrench" href="/guides/CDP/integrations/facebook-pixel/setup">
    Learn how to configure your Facebook Pixel integration
  </Card>
</CardGroup>
