Docs
Free ON WEBFLOW.IO DOMAINS

Meta Pixel & CAPI Integration

Integration
Integrate Meta Pixel & CAPI with your Shopify store in Webflow

Shopify Storefront data and cart logic is bound to your Webflow elements through Shopyflow attributes. Connecting your Webflow site to Shopify is done by adding custom attributes to your Webflow elements.

Yet, you are not required to type or edit attributes manually. Shopyflow provides you with the pre-configured components needed to create your store, as copyable Webflow elements right in Webflow designer.

All the copyable Shopyflow Components are native editable Webflow elements. There is no layout or styling limitation on any element.

In the below image hover your mouse on the hotspots to see all the required Shopyflow attributes to build a product page like this in Webflow

Webflow designer
Custom Attributes
sf-add-to-cart="1"
Custom Attributes
sf-change-quantity="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-cart-count="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-product="{Product ID}"
Custom Attributes
sf-show-image="1"
Attribute Name
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
No items found.
Meta Pixel & CAPI Integration
Method

Meta Pixel tracks customer interactions on Shopify stores, offering insights into the performance of Facebook and Instagram ads. Combined with the Conversions API, it ensures accurate data tracking and enhances retargeting efforts by sending data directly from the server.

IMPORTANT: Make sure to use a custom domain in Shopify (a domain that is not a myshopify.com domain) for better aggregated events measurement.

Pixel

First off, we need to enable Meta Pixel in Webflow. We can do that in two different ways:

  1. Copying and pasting the Pixel code you got from Meta Ads Manager into Webflow page settings.
  2. Using Webflow's native integration as seen below.
IMPORTANT: Make sure you don't use Pixel Webflow integration and the Pixel code snippet at the same time.

GDPR

If your site has to be GDPR compliant, you need to delay loading Pixel until your customers give their consent. You can achieve this in two ways:

  1. Turning on the Delay toggle in the image above. This method requires granting consent programmatically after your customer gives consent. You can read more on this topic here.
  2. Using a solution like Finsweet's cookie consent. If you are using Finsweet's solution, make sure you are NOT using the native Webflow Pixel integration (the image above). It work only with Pixel code snippet that you get from Meta Ads Manager.

Next, go ahead and enable Pixel tracking in Shopyflow Webflow App > Installation > Advanced Tracking and enter your Pixel ID.

Once the code snippet is updated and the site is published, Shopyflow will start tracking the following Pixel events:

  • View Content
  • Add to Cart
  • Remove from Cart
  • Initiate Checkout (via Shopify in checkout)
  • Add Payment Info (via Shopify in checkout)
  • Purchase (via Shopify in checkout)

CAPI

Follow these steps to complete your CAPI setup:

① Install the Shopify Facebook & Instagram app to enable the sales channel.

② In the Facebook app go to Data sharing section and set the sharing level to Maximum to enable CAPI on Shopify. Follow this guide to learn how.

③ In Data sharing section, connect your Pixel to your Shopify account if you haven't done it yet.

④ Go to Shopyflow Webflow App > Installation > Advanced Tracking. Enable CAPI and enter your CAPI Access Token.

⑤ Make sure you use the same Pixel ID in Webflow and in Shopify.

Class name
Target elements
Can be placed anywhere in the site
No items found.

Webflow app usage

Webflow app settings

Inner components

Module contents

Available methods

No items found.

Integration

contents

No items found.

State management

No items found.

Related Utilities

No items found.
Can't find a solution? Join our Discord server to get an instant reply from our experts and the community.