Shopify Conversions API (CAPI): How to Set Up Meta, Google & TikTok Server-Side Tracking
The Conversions API, commonly called CAPI, is the server-side counterpart to browser-based ad pixels. Instead of relying on JavaScript running in your visitor's browser to report conversions, CAPI sends event data directly from your server to the ad platform's server. For Shopify store owners, this is now essential: ad blockers, iOS privacy restrictions, and browser cookie limitations mean your pixels are missing 20 to 40 percent of actual conversions. CAPI recovers that lost data.
This guide covers how the Conversions API works, which platforms offer it, and how to set it up on your Shopify store for Meta (Facebook and Instagram), Google, TikTok, and Pinterest.
What Is the Conversions API (CAPI)?
The Conversions API is a server-side interface provided by ad platforms that allows you to send conversion events (purchases, add-to-carts, checkouts, page views) directly from your server. The term "CAPI" originated with Meta's Conversions API for Facebook and Instagram ads, but the concept now exists across all major platforms under different names:
- Meta: Conversions API (CAPI)
- Google: Enhanced Conversions and Measurement Protocol
- TikTok: Events API
- Pinterest: Conversions API
- Snapchat: Conversions API
- Reddit: Conversions API
They all work on the same principle: your server sends a structured event payload to the platform's API endpoint, including the event type, transaction details, and hashed customer identifiers for matching. The platform uses this data to attribute the conversion to the correct ad campaign, just as if the pixel had fired in the browser.
Why Your Shopify Store Needs CAPI
If you are running paid advertising on any platform and relying solely on browser pixels for conversion tracking, you are operating on incomplete data. Here is exactly what is happening:
Your Pixel Is Missing Conversions
Ad blockers (used by 30 to 42 percent of internet users) block tracking scripts from Meta, Google, TikTok, and other platforms. Safari's Intelligent Tracking Prevention caps JavaScript cookie lifetimes at 7 days. Firefox Enhanced Tracking Protection blocks known trackers by default. Brave browser strips click identifiers from URLs entirely. Every blocked event is a conversion your ad platform cannot see.
Missing Data Hurts Campaign Performance
Ad platforms use machine learning to optimize who sees your ads. When 30 percent of conversions are missing, the algorithm has a distorted view of your ideal customer. It cannot properly optimize bidding, targeting, or creative selection. The result: higher CPAs, worse ROAS, and wasted ad spend. CAPI provides the complete conversion data the algorithm needs to perform at its best.
Platforms Prioritize Advertisers with Server-Side Data
Meta has been explicit: advertisers who implement CAPI alongside the pixel see better ad delivery and lower costs per result. Google rewards higher data quality with better Smart Bidding performance. TikTok's optimization engine performs better with Events API data. Setting up CAPI is not just about data recovery. It is a competitive advantage in ad auctions.
Meta Conversions API (CAPI) for Shopify
Meta's Conversions API is the most widely implemented server-side tracking solution for Shopify stores, given that Meta (Facebook and Instagram) advertising is the primary paid channel for most DTC brands.
What Meta CAPI Sends
The Conversions API sends events to Meta including:
- Event name: Purchase, AddToCart, InitiateCheckout, PageView, ViewContent
- Event data: Order value, currency, product IDs, product names, quantity
- Customer parameters: Hashed email, hashed phone number, external ID, fbclid (click identifier), fbc and fbp cookies, client IP address, user agent
The more customer parameters you include, the higher your Event Match Quality (EMQ) score in Events Manager. A higher EMQ means Meta can match more conversions to the correct users and ad campaigns. Shopify stores have a natural advantage here because customers provide their email and phone number at checkout.
How to Set Up Meta CAPI on Shopify
There are three main approaches:
- Shopify's built-in Meta integration: Shopify offers a native Meta channel that includes basic CAPI support. However, it has limitations: the event match quality is often lower because it does not capture and forward all available customer parameters, and it relies on the Shopify checkout integration which does not cover all event types.
- Manual API implementation: You can build a custom server-side integration using Meta's Conversions API documentation. This requires development resources, handling authentication, event formatting, customer data hashing, deduplication logic, and ongoing maintenance when Meta updates the API.
- Converlay (recommended): Install the Converlay Shopify app, connect your Meta Pixel ID and Conversions API access token, and events start flowing within minutes. Converlay automatically handles customer parameter hashing, event deduplication, click ID capture, and all event formatting. Most merchants see their Event Match Quality score reach "Good" or "Great" within a few days.
Meta CAPI Best Practices
- Run the pixel and CAPI simultaneously. Meta recommends this for maximum coverage and uses event IDs to deduplicate.
- Monitor your Event Match Quality score in Events Manager. Aim for "Good" (6+) or "Great" (8+).
- Ensure you are sending the
fbclidparameter. This is the single most important parameter for click-based attribution. - Send all standard e-commerce events: PageView, ViewContent, AddToCart, InitiateCheckout, and Purchase.
Google Enhanced Conversions and Measurement Protocol for Shopify
Google offers two server-side approaches for conversion data: Enhanced Conversions for Google Ads and the Measurement Protocol for GA4. Both improve data accuracy for Shopify stores.
Google Enhanced Conversions
Enhanced Conversions allow you to send hashed first-party customer data (email, phone, address) alongside your conversion tags. Google uses this data to match conversions to logged-in Google users, recovering conversions that would be lost due to cookie restrictions. For Shopify stores, this means Google Ads can attribute more purchases to the correct campaigns, especially for cross-device conversions where a user clicked an ad on mobile but purchased on desktop.
GA4 Measurement Protocol
The Measurement Protocol lets you send events directly to Google Analytics 4 from your server. This is valuable for Shopify stores because GA4 events sent via the pixel (gtag.js) are blocked by ad blockers. Server-side events through the Measurement Protocol ensure your GA4 reports reflect actual store activity, not just the activity of visitors without ad blockers.
Setting Up Google Server-Side Tracking on Shopify
With Converlay, connect your Google Ads Conversion ID and GA4 Measurement ID. Converlay sends purchase and e-commerce events to both Google Ads (for conversion optimization and Smart Bidding) and GA4 (for analytics and reporting). The gclid click identifier is captured and forwarded automatically for accurate click-based attribution.
TikTok Events API for Shopify
TikTok's Events API is the server-side equivalent of the TikTok Pixel. For Shopify stores advertising on TikTok, the Events API is critical because TikTok's pixel (analytics.tiktok.com) is blocked by virtually every ad blocker.
What TikTok Events API Sends
The Events API sends structured event data to TikTok including:
- Event types: PageView, ViewContent, AddToCart, InitiateCheckout, CompletePayment
- Content parameters: product IDs, content type, value, currency
- User parameters: hashed email, hashed phone, ttclid (TikTok click ID), IP address, user agent
Setting Up TikTok Events API on Shopify
In Converlay, add your TikTok Pixel ID and Events API access token. Converlay maps Shopify events to TikTok's expected event format and includes the ttclid for attribution. TikTok's Events Manager will show incoming events tagged as "Server" alongside any pixel events tagged as "Browser."
Pinterest Conversions API for Shopify
Pinterest's Conversions API follows the same pattern. For Shopify stores running Pinterest ads, the Conversions API recovers conversion data that the Pinterest Tag misses due to ad blockers and browser restrictions.
Connect your Pinterest Tag ID and Conversions API access token in Converlay. Events including page views, add-to-cart, checkout, and purchase are sent to Pinterest's API with hashed customer identifiers for matching. Pinterest uses this data to optimize your ad campaigns and attribute conversions accurately.
Setting Up CAPI for All Platforms at Once with Converlay
The most efficient approach is to set up server-side tracking for all your ad platforms simultaneously. Here is the process with Converlay:
- Install Converlay from the Shopify App Store.
- Add each platform's credentials in the Converlay dashboard: Pixel IDs, API tokens, and conversion IDs for Meta, Google, TikTok, Pinterest, and any other platforms you use.
- Enable event forwarding for each platform. Converlay captures Shopify events once and fans them out to every connected platform simultaneously.
- Verify on each platform that server events are arriving. Check Meta Events Manager, Google Ads conversion status, TikTok Events Manager, and Pinterest conversion tag diagnostics.
- Monitor impact over the first 2 weeks. Track the increase in reported conversions and improvement in event match quality across platforms.
The advantage of this approach is that a single purchase event on your Shopify store gets sent to every connected platform at once. One customer buys a product, and Meta, Google, TikTok, and Pinterest all receive the conversion data through their respective APIs. No browser dependency for any platform.
CAPI vs. Pixel: Do You Need Both?
Yes. All ad platforms recommend running both the pixel and CAPI simultaneously. Here is why:
| Aspect | Pixel Only | CAPI Only | Pixel + CAPI |
|---|---|---|---|
| Visitors without ad blockers | Tracked | Tracked | Tracked |
| Visitors with ad blockers | Lost | Tracked | Tracked |
| Real-time events | Yes | Slight delay | Yes (pixel) + backup (CAPI) |
| Browser events (scroll, time on page) | Yes | No | Yes |
| Deduplication | N/A | N/A | Automatic via event ID |
| Data completeness | 60-70% | 85-90% | 95-99% |
Running both gives you the speed of pixel events for non-blocked visitors plus the reliability of server-side events for everyone else. The platforms handle deduplication so there is no double counting.
Frequently Asked Questions
What is the difference between CAPI and a pixel?
A pixel is a JavaScript snippet that runs in the visitor's browser and sends events to the ad platform. CAPI (Conversions API) sends the same events from your server directly to the ad platform's server. The pixel can be blocked by ad blockers and browser privacy features. CAPI cannot be blocked because it bypasses the browser entirely.
Is CAPI free to use?
The APIs themselves are free. Meta, Google, TikTok, and Pinterest do not charge for receiving server-side events. The cost comes from the implementation: either developer time to build and maintain a custom integration, or the subscription fee for a tool like Converlay that handles the integration for you.
Will CAPI fix my low ROAS?
If your low ROAS is caused by missing conversion data (which is extremely common), CAPI will directly improve your reported ROAS by recovering invisible conversions. More importantly, the complete data helps ad platform algorithms optimize better, which can improve actual campaign performance over time.
How do I know if CAPI is working correctly?
Check each platform's event management dashboard. Meta Events Manager shows events labeled "Server" alongside "Browser" events. Google Ads shows conversion action status. TikTok Events Manager labels events by source. You should see a mix of browser and server events, with total conversions higher than what you were seeing with the pixel alone.
Does Shopify have built-in CAPI support?
Shopify offers a native Meta channel with basic CAPI functionality. However, it only covers Meta and has limited event match quality. For comprehensive server-side tracking across Meta, Google, TikTok, Pinterest, and other platforms, a dedicated solution like Converlay provides significantly better coverage and data quality.
Can I set up CAPI without a developer?
Yes. With Converlay, setting up CAPI on Shopify requires no coding. You install the app, enter your platform credentials, and server-side events start flowing. The entire setup process takes minutes, not days or weeks of development work.
How does CAPI handle customer data privacy?
CAPI implementations hash customer data (email, phone number) using SHA-256 before sending it to ad platforms. The platforms never receive raw customer data through CAPI. Additionally, CAPI should only send data for visitors who have provided consent where required (GDPR, CCPA). Converlay supports consent-based event filtering.
Set up CAPI on your Shopify store with Converlay and start recovering the conversions your pixels are missing. Connect all your ad platforms in minutes.