Meta Pixel Integration
Meta Pixel (formerly Facebook Pixel) integration enables powerful advertising tracking and optimization for your Facebook and Instagram campaigns. DokanGo's dual tracking system ensures reliable data collection for better ad performance.
Overview
Meta Pixel tracks customer actions on your store, sending this data to Facebook to help optimize your advertising campaigns and measure their effectiveness.
Key Capabilities
- Dual tracking system (browser-side and server-side)
- Automatic event tracking
- Purchase conversion tracking
- Custom audience building
- Campaign optimization
- Privacy-compliant implementation
What Is Meta Pixel?
Meta Pixel is a piece of code that tracks visitor behavior on your website and sends this information to Facebook.
Why It Matters
Campaign Optimization:
- Facebook uses pixel data to show your ads to people most likely to buy
- Automatic bid optimization based on conversion data
- Better targeting leads to lower cost per purchase
Conversion Tracking:
- See which ads lead to actual sales
- Calculate return on ad spend (ROAS)
- Understand customer journey from ad to purchase
Audience Building:
- Create custom audiences of people who visited your store
- Build lookalike audiences similar to your customers
- Retarget people who viewed products but didn't buy
Performance Measurement:
- Track which campaigns drive sales
- Measure ad effectiveness
- Optimize budget allocation
Dual Tracking System
DokanGo implements both browser-side and server-side tracking for maximum reliability.
Browser-Side Tracking
How It Works:
- Pixel code loads in customer's browser
- JavaScript tracks actions as they happen
- Data sent directly from browser to Facebook
Advantages:
- Real-time tracking
- Captures detailed browsing behavior
- Standard implementation
Limitations:
- Blocked by ad blockers
- Affected by browser privacy settings
- iOS 14+ restrictions reduce accuracy
Server-Side Conversions API
How It Works:
- DokanGo server sends event data to Facebook
- Bypasses browser limitations
- More reliable data transmission
Advantages:
- Not blocked by ad blockers
- Not affected by browser privacy settings
- More accurate conversion tracking
- Better data quality
Why Both? Using both methods ensures maximum data capture:
- Browser-side catches what server-side might miss
- Server-side catches what browser-side can't track
- Combined data gives Facebook the best information for optimization
Tracked Events
DokanGo automatically tracks key customer actions.
Page View
When: Customer visits any page on your store
Data Sent:
- Page URL
- Page title
- Referrer (where they came from)
Use: Measure overall traffic and engagement
View Content (Product View)
When: Customer views a product detail page
Data Sent:
- Product ID
- Product name
- Product category
- Product price
- Currency
Use:
- Build audiences of people interested in specific products
- Retarget product viewers
- Optimize for product view campaigns
Add to Cart
When: Customer adds a product to their cart
Data Sent:
- Product ID
- Product name
- Product price
- Quantity
- Currency
Use:
- Retarget cart abandoners
- Optimize for add-to-cart campaigns
- Measure cart conversion rate
Initiate Checkout
When: Customer starts the checkout process
Data Sent:
- Cart contents
- Cart value
- Number of items
- Currency
Use:
- Retarget checkout abandoners
- Optimize for checkout initiation
- Measure checkout conversion rate
Purchase
When: Customer completes an order
Data Sent:
- Order ID
- Order total
- Products purchased
- Quantity of each product
- Currency
- Customer email (hashed for privacy)
- Customer phone (hashed for privacy)
Use:
- Track conversion from ads
- Calculate ROAS
- Build purchaser audiences
- Optimize for purchase campaigns
Configuration
Setting up Meta Pixel integration is straightforward.
Getting Your Pixel ID
- Go to Facebook Events Manager
- Create a pixel (if you don't have one)
- Copy your Pixel ID (a 15-16 digit number)
Getting Access Token
- In Facebook Events Manager, go to Settings
- Generate a Conversions API access token
- Copy the token
Configuring in DokanGo
- Go to Store Settings
- Find "Meta Pixel Integration" section
- Enter your Pixel ID
- Enter your Access Token
- Save settings
That's it! DokanGo automatically starts tracking events.
Verifying Setup
- Go to Facebook Events Manager
- Check "Test Events" tool
- Visit your store and perform actions
- Verify events appear in real-time
Benefits for Advertising
Meta Pixel integration supercharges your Facebook and Instagram advertising.
Better Targeting
Custom Audiences:
- People who viewed specific products
- People who added to cart but didn't buy
- People who purchased in the past
- People who visited specific pages
Lookalike Audiences:
- Find people similar to your customers
- Expand reach to qualified prospects
- Improve ad efficiency
Campaign Optimization
Automatic Optimization:
- Facebook shows ads to people most likely to convert
- Bid adjustments based on conversion probability
- Budget allocation to best-performing ads
Conversion Campaigns:
- Optimize for purchases (not just clicks)
- Track actual sales from ads
- Improve ROAS over time
Performance Measurement
Attribution:
- See which ads led to purchases
- Understand customer journey
- Multi-touch attribution
ROAS Calculation:
- Automatic return on ad spend tracking
- Compare campaign performance
- Optimize budget allocation
Privacy Considerations
DokanGo implements Meta Pixel in a privacy-compliant manner.
Data Protection
Hashing:
- Customer email and phone are hashed before sending
- Facebook can match data without seeing raw information
- Protects customer privacy
Minimal Data:
- Only necessary data is sent
- No sensitive information transmitted
- Compliant with privacy regulations
Customer Control:
- Customers can opt out of tracking
- Browser privacy settings are respected
- Transparent data usage
Compliance
- GDPR compliant (for European customers)
- Privacy policy disclosure
- Cookie consent (if required in your region)
Best Practices
Set Up Early - Install pixel before running ads to build data history.
Verify Events - Use Facebook's Test Events tool to ensure tracking works.
Use Both Tracking Methods - Don't disable either browser-side or server-side tracking.
Build Audiences - Create custom audiences for retargeting campaigns.
Optimize for Purchases - Use purchase conversion objective for sales campaigns.
Track ROAS - Monitor return on ad spend to evaluate campaign effectiveness.
Retarget Strategically - Show different ads to viewers, cart abandoners, and past customers.
Test and Iterate - Use pixel data to test different audiences, creatives, and strategies.
Respect Privacy - Be transparent about tracking and respect customer preferences.
Monitor Data Quality - Check Events Manager regularly to ensure data is flowing correctly.
Troubleshooting
Events Not Showing
Check:
- Pixel ID is correct
- Access token is valid
- Internet connectivity
- Facebook Events Manager status
Solution:
- Verify credentials in settings
- Regenerate access token if needed
- Wait a few minutes for data to appear
Low Match Rate
Causes:
- Missing customer email/phone
- Hashing issues
- Privacy settings blocking data
Solutions:
- Encourage customers to provide email
- Verify hashing is working correctly
- Use server-side tracking (better match rates)
Duplicate Events
Causes:
- Both browser and server sending same event
- Multiple pixel installations
Solution:
- DokanGo handles deduplication automatically
- Verify only one pixel is installed
Related Topics
- Analytics & Reporting - Track overall business performance
- Marketing Tools - Create campaigns to promote with ads
- Store Settings - Configure Meta Pixel integration