How to Set up Facebook Conversion API on Shopify

Facebook and Instagram are the #1 sales and marketing channels for Shopify store owners. Facebook Conversion API (aka CAPI) has become an incredibly hot topic after Apple’s revolutionary data sharing and processing changes with iOS 14. In this article, we will take a deep dive into Facebook Pixel, Facebook Conversion API, the differences between them, their importance, best practices, and most importantly how to set up FB Conversion API on Shopify.

Why Use Facebook Conversion
API for Shopify Stores

In a nutshell, there are three core reasons based on three facts:

Fact 1

After iOS14 changes that Apple released in April 2021 (*1), Apple users have the opportunity to opt-out from tracking. As Apple states: "App developers are required to ask users for their permission to track them across apps and websites owned by other companies".

Effect on Tracking

When a visitor clicks on a website ad on Instagram and Facebook mobile apps, the website opens in a special browser called in-app Safari. Tracking is not allowed there as Safari and Instagram/Facebook are different apps. The only thing passed is the FB Click ID. However, this is of no use if the user does not immediately purchase the product.

Why Use Facebook Conversion API for Shopify Stores Fact1


FB Conversion API works on the server-side and tries to attribute the users using user data, which we will explain in more detail below.

Fact 2

27% of American internet users and 42% of global users use ad blockers.(*2) Effect on tracking: Ad blockers block the FB Pixel and all possible tracking requests.

Effect on Tracking

So when the user lands on the website the tracking is lost and no data is shared with Facebook anymore. Facebook won’t know which user added to the cart or purchased the product.

Why Use Facebook Conversion API for Shopify Stores Fact2


FB Conversion API and Shopify server-side tagging in general works on the cloud - server-side. So the ad blockers don’t block those requests.

Fact 3

Safari, Firefox and Mozilla have become stricter with 3rd party cookies. Effect on tracking: As detailed in this article, Facebook leaves a cookie on the user’s browser in order to be able to associate the further actions.

Effect on Tracking

If the visitor buys the next day rather than in the same session, the FB Pixel will recognize the user from the cookie. However, as 3rd party cookie lifetime is now very short (7 days usually), it becomes very difficult to detect.

Why Use Facebook Conversion API for Shopify Stores Fact3


FB Conversion API and Shopify server-side tagging in general works on the cloud - server-side. So the ad blockers don’t block those requests.

FB Pixel vs. FB
Conversion API

FB Pixel vs. FB onversion APIShopify App For Informed Decisions

Facebook Pixel is one of the first things to install when you create a Shopify store because you (and Facebook) want to know in what ways the visitors interact with your website. For example;

  • Which visitors clicked the ads and landed into your Shopify store,
  • What actions they took (such as page viewing, product viewing, adding to cart, starting the payment, completing the purchase),
  • Product-level information (that they viewed, added to cart or purchased) for retargeting campaigns,
  • Purchase-level information such as revenue, products, quantity, shipping cost, etc.,
  • User-level information (user’s FB click ID to associate the user to the correct campaign or ad groups)

All of this data is sent to Facebook via Pixel so that the marketing team or Shopify store owner should know which ads/ad copies/products/platforms/images perform better and calculate ROI.

However, Facebook Pixel works at the browser level. Thus, requests and data are processed through the visitor’s browser. It is vulnerable to ad blockers, iOS limitations, and browser cookie policies.

FB Conversion API works at the server level. Requests are sent directly to Facebook Servers from Shopify Server or from your own server, depending on the FB CAPI Setup Shopify method you use.

For example, when a purchase occurs, all user information (first name, last name, zip code, email, etc.) is sent to Facebook at the server level along with the purchase event. Facebook CAPI tries to find that specific user within the list of users that clicked the ad.

You can imagine this as manually checking users on both sides. Facebook already has the list of all users who saw and/or clicked on the ad. And it can not track further. Facebook CAPI, on the other hand, sends another user list together with the purchase event. In this way, FB Server tries to match the users who click the ads with the users who make purchases. Of course, this is not as simple as we described, and much more complex than that. We just illustrated it in a simple way :)

Facebook calls this technology Advanced Matching Web, and you can learn more about it on their official documentation.

How to Setup Facebook
Conversion API on Shopify

There are several ways to set up FB CAPI on Shopify stores. The fastest and easiest one is obviously the native integration using the Facebook Sales Channel. It only installs the FB CAPI on the Shopify server. Remember — this is not a complete server-side tagging setup. Therefore, you will continue to have problems with remarketing events. If you are looking for complete server-side tagging, including FB CAPI, Google Analytics, and Google Ads, then you should consider Analyzify Server-Side Tagging Add-on.

  • Native Shopify Facebook CAPI Integration
  • Analyzify Server-Side Tagging Add-on
  • Analyzify Youtube Server-Side Tagging Course (to be announced soon)
How to Setup Facebook Conversion API on Shopify
Client Side Tracking Shopify

Client-Side Tracking is the typical tracking method
that almost all websites currently use.

Learn More on Client-Side Tracking vs. Server-Side Tracking
Server SIde Tracking Shopify
Server-Side Tagging

The data collection and processing happen
on your server.

Learn More on the Benefits
One-Time Fee - Including Setup, Validation, Support and, Training

Analyzify Server-Side Tagging is a great deal. We will set up everything for you, validate, deliver, maintain and train your team.

Analyzify Server-Side
Tagging Add-on

One-time fee per storeBook a Demo
What's included:
  • Google Cloud Server-Side Tagging Instance Setup
  • Google Tag Manager Server-Side Setup
  • Google Analytics (UA + GA4),
  • Google Ads Server-Side (Enhanced Conversions),
  • Facebook Conversion API Setup
  • Data Validation / Custom Adjustments
  • 12 Months Support
  • 2-Hours 1-on-1 Data & Server-Side Tagging Training

We do offer a complete server-side tagging setup that includes server-side GTM, Analytics, Google Ads, and FB Conversion API. We ask you to create a Google Cloud account and then do your complete server-side tagging on your account.

Just like the regular version of Analyzify, our server-side tagging setup will be served under your properties. We will not collect or pass any data to our properties. All the data will flow into your own Google Analytics, Google Cloud and GTM accounts. Our team will be responsible for the setup and validation.

The server-side tagging works on top of your regular data analytics setup. However, you first need to have a solid data analytics setup, data layers, and web-GTM container to run the server-side tracking. That’s why it is an add-on to our core version.

Analyzify's server-side tagging add-on costs $2790: a one-time fee for setup, service, and support. The core version of Analyzify is $749, also a one-time fee, in addition to 3-months of expert support. An additional 1-month support fee is $179.

You will also need a Google Cloud account to run the server-side tagging. It comes with a $300 free credit; but depending on your traffic, it might cost between $60 - $90/month.

The Server-side tagging is a whole another concept. It doesn’t only include Facebook Conversion API - but it also makes Google Tag Manager (sGTM), Google Analytics, Google Ads work through the server. It overcomes ad blockers and the Safari’s and iOS’ cookie lifetime limitations. Last but not least, it sends more data to Facebook (compared to the native integration) so the event match rates go higher.

Client-side tracking is the typical tracking method that almost all websites currently use. Almost every action takes place in the visitor’s browser. When a visitor visits our websites, Google Tag Manager (if installed) runs through the browser (e.g. Google Chrome or Safari), reads the data layers (if installed), and sends requests to 3rd parties along with the related data attached to it.

As for the server-side tracking, the data collection and processing happen on your server. You can check our article if you wish to learn the concept further.

After the initial setup, we have a data validation phase where we send all the data into staging properties and cross-compare it with the original data. We move your setup to production once we are 100% sure. The total process takes 5 to 7 days.

If you already have the core version of Analyzify on your Shopify store, just go ahead to the app settings and Get Started on the Server-Side Tagging add-on. Else, you can start with Analyzify and you’ll have the option to purchase the add-on after your setup is complete.

star fullstar fullstar fullstar fullstar full

It's an excellent application! In addition, they offer outstanding support. The plugin has allowed us to activate all Google Analytics 3 and 4 enhanced e-commerce reports.

Patagonia Chile
star fullstar fullstar fullstar fullstar full

These guys are the real deal; we had thrown everything at our disposal for fixing our Google Analytics tracking issues with our shopify store but nothing worked. They not only fixed the GA tracking but also setup GA4. Absolutely amazing.

Avengarde Global
star fullstar fullstar fullstar fullstar full

I was able to install and get Google Tag Manager running in less than 30 minutes. Google Analytics 4 is working perfectly and I didn't have any experience with this. I didn't need a developer and I've acquired a whole team happy to help me for the installation and for future changes. They are always available and very happy to help in a timely manner. Setup was easy and video walked me thru every step of the way. I have it installed in my 2 stores and suggest it to all who need to be ready for Google Analytics 4.

Wanan Luxury
star fullstar fullstar fullstar fullstar full

I have had this app for a while, and not only it performs perfectly, it is always updated and it provides tremendous value to the business. The instructional videos are super-helpful, but the team behind is the true gem in all of this. No problem is a problem and the founder is always available in first person to help! No-coding experience needed. The perfect solution to have a custom implementation without the need for a costly consultancy.

star fullstar fullstar fullstar fullstar full

I used this service to correct our store integrations to the Google platform and to get a head-start on proper connection to the new GA4 platform. They were very responsive and helpful with a clear process. A big missing piece for us was Google's tag manager. If you have fairly good knowledge of Google Analytics and GMC etc. with some decent web dev experience, you probably would not need this service as I did not see any particular value-add other than ensuring proper setup. But for those that may be a bit out of their league, this was VERY helpful. I really appreciated how they explained exactly what was done upon completion, and it was rewarding and refreshing to see our data flowing properly once again.

Bloom Audio
star fullstar fullstar fullstar fullstar full

Very important app to have on your store in order to understand how your e-commerce is doing. With them, I feel sure about my analytics data and now I can work on strategies for Google Ads campaigns. They have a very good implementation and their support reached me out directly on Google Meet to fix some issues caused by the GDPR app I use.

Ghidini 1849

What Our Clients
Said About Analyzify

We are thrilled to have many happy clients. You can also check the public reviews on Shopify App Store.