Prerequisites
Before setting up the Facebook Pixel integration, ensure you have:- A Facebook Business Manager account
- A Facebook Pixel created in your Business Manager
- A Facebook App with appropriate permissions
- Access to Facebook Developers Console
Step 1: Create Facebook Pixel
Step 2: Generate Access Token
Step 3: Configure in Masivo
Configuration Fields
Required Fields
Facebook Pixel ID
Facebook Pixel ID
Field:
pixel_id Your Facebook Pixel ID from Business Manager. Find
it in Events → Pixels → [Your Pixel] → Settings. Format: 15-16 digit
number (e.g., 1234567890123456)Access Token
Access Token
Field:
access_token Facebook access token with ads_management and
pixel_management permissions. Format: EAAxxxxxxxxxxxxxxxxxxxxxOptional Fields
Test Event Code
Test Event Code
Field:
test_event_code Optional test event code for testing in
development environments. Format: TEST12345Action Source
Action Source
Field:
action_source Source of the event (website, app, phone_call,
etc.). Default: websiteEvent Source URL
Event Source URL
Field:
event_source_url URL where the event occurred. Format:
https://yourwebsite.comEvent Mapping
Event Types
Customer Events
Customer Events
Masivo Event: CUSTOMER, USER, IDENTIFY Facebook Event:
CompleteRegistration Tracks customer registration and profile creation.
Purchase Events
Purchase Events
Masivo Event: PURCHASE, TRANSACTION Facebook Event: Purchase
Tracks customer purchases and transactions.
Engagement Events
Engagement Events
Masivo Event: EVENT, TRACK Facebook Event: ViewContent Tracks
customer engagement and behavior.
Page Events
Page Events
Masivo Event: PAGE, PAGEVIEW Facebook Event: ViewContent Tracks
page views and navigation.
Data Privacy
Privacy Settings
PII Hashing
PII Hashing
Email addresses and phone numbers are automatically hashed using base64
encoding before sending to Facebook.
Data Processing Options
Data Processing Options
Configure data processing options for GDPR compliance if required.
Opt-out Support
Opt-out Support
Respect customer opt-out preferences for data sharing with Facebook.
Testing
Troubleshooting
Common Issues
Events Not Appearing
Events Not Appearing
- Verify Pixel ID is correct - Check access token permissions - Ensure test event code is removed in production
Permission Errors
Permission Errors
- Verify access token has required permissions - Check if token has expired - Ensure app has proper Business Manager access
Data Format Issues
Data Format Issues
- Check that customer data is properly formatted - Verify required fields are present - Ensure PII data is properly hashed
Best Practices
Data Quality
Ensure customer data is clean and properly formatted before sending to
Facebook
Privacy Compliance
Regularly review and update privacy settings to maintain compliance
Monitoring
Monitor Facebook Events Manager for data quality and delivery issues
Testing
Always test in development environment before deploying to production