1. Use Shopify’s Native Facebook App (Easiest Way)
Shopify provides a built-in way to integrate CAPI.
Steps:
- Go to Shopify Admin → Settings → Apps and Sales Channels.
- Install the Facebook & Instagram app if you haven’t already.
- Connect your Facebook Business Manager and select your ad account.
- Enable Facebook Pixel and turn on Conversion API.
- Shopify automatically configures events like
Purchase
,Add to Cart
,View Content
, etc.
🔹 Limitations: Shopify controls the events sent, so customization is limited.
2. Use a Third-Party App (More Control)
If you need more customization, you can use apps like:
These apps provide better event deduplication and advanced settings.
3. Custom Integration via Google Tag Manager (GTM)
If you’re using Google Tag Manager (GTM), you can manually send CAPI events.
Steps:
- Set Up GTM on Shopify
- Add GTM’s container snippet to your Shopify theme.liquid file.
- Create Server-Side GTM
- Set up a server container in GTM.
- Use Google Cloud or your own hosting for the server endpoint.
- Send Events to Facebook
- In GTM, create Facebook CAPI tags and triggers.
- Use a deduplication key (Event ID) to match browser and server events.
🔹 Best for: Advanced users who want full control over their tracking setup.
Best Option for You?
✅ If you want easy setup → Use Shopify’s Facebook App
✅ If you need more control → Use a third-party app
✅ If you’re technical & want full tracking → GTM or a custom API
Let me know if you need help with a specific method! 🚀