Using Meta Pixel with Squarespace
- Using Meta Pixel with Squarespace
- Integrate with Meta Pixel to promote the products you sell, and drive more traffic to your site.
- Set up Meta Pixel for an online store or ads
- Set up Meta Pixel to track site traffic
- Collect consent
- View visitor data on Facebook
- How Meta Pixel events map to visitor actions
- Visitor data Meta Pixel tracks
- Remove Meta Pixel
- Where to go for support and questions
- FAQ
false
Using Meta Pixel with Squarespace
Last updated October 14, 2026 22:24
Integrate with Meta Pixel to promote the products you sell, and drive more traffic to your site.
Meta Pixel is a tool that tracks visitor activity on a website to help Facebook understand and target users for ads. For example, if a visitor views a product, Pixel can read that information so you can show ads for the product to that same visitor.
Meta Pixel is a helpful integration for any business, whether you’re selling products or want to drive more traffic to your site. This guide reviews how to set up the integration and includes the data Meta Pixel collects about your visitors.
To learn about other ways you can integrate with Facebook, visit Using Facebook with Squarespace.
The Meta Pixel integration is available in Core, Plus, Advanced, Business, Commerce Basic, and Commerce Advanced plans. To learn more, visit Choosing the right Squarespace plan.
Set up Meta Pixel for an online store or ads
If you're setting up Meta Pixel as part of connecting your online store to Facebook and Instagram and advertising your products, follow the steps in Selling products on Facebook and Instagram.
Tip: For tips to increase your revenue, visit Increasing your store's sales.
Set up Meta Pixel to track site traffic
If you're only interested in using Meta Pixel to track site traffic, not as part of selling products on Facebook and Instagram, follow the steps below.
Step 1: Remove any pixel code (optional)
Tip: If you’ve never used Meta Pixel with this Squarespace site, skip this step.
If you set up Meta Pixel by adding the code to code injection, you’ll need to remove the code to use the built-in integration. Removing the code won’t affect your data in Facebook, as long as you add your pixel ID shortly after removing the code.
To remove the code:
- Log into your Squarespace site.
- Open the Code Injection panel.
- In the Header field, delete any pixel code. Only delete the code beginning and ending with <! -- Meta Pixel Code -->. Deleting anything else in this field could break other site customizations added in code injection, which Customer Support can’t troubleshoot.
- In the Order Confirmation Page field, look for similar pixel code and delete it.
- Click Save at the top of the panel.
- If you have any Facebook code on individual pages, remove it from the Page Header Code Injection.
Step 2: Get your pixel ID from Facebook
To use Meta Pixel with Squarespace, you’ll need your pixel ID:
- If you haven't already, follow Facebook’s steps to create a Meta Pixel.
- Copy the pixel ID for the Meta Pixel that you want to add to your site.
Step 3: Add your pixel ID to Squarespace
Add your pixel ID to your site:
- Open the Meta Pixel & Ads panel.
- In the field below Pixel ID, add the pixel ID you copied from Facebook. You can only add one pixel ID.
- Click Save.
Collect consent
You can use the Squarespace cookie banner to make placement of the Meta Pixel dependent on prior user consent. Meta manages consent for its products, including the Meta Pixel, so for more details, visit Meta's documentation.
To configure your Squarespace site to require consent for the Meta Pixel and similar cookies:
- Open the Cookies & Data Privacy panel, then switch on the toggle beside Cookie banner.
- Switch on the toggle beside Manage cookies button to ensure that non-essential cookies like the Meta Pixel will not be placed on site visitor devices unless the visitor consents. You may also wish to enable the Decline All button to make it easy for site visitors to quickly decline all non-essential cookies.
- (Optional) Edit your cookie banner and button text in the Disclaimer text, Manage button label, or Decline button label fields.
- Click Save.
Note:
- This applies to sites using Squarespace’s cookie banner. If you’re using a third-party consent management platform, work directly with your cookie banner provider.
- Learn more about Squarespace’s cookie banner and consent functionality.
View visitor data on Facebook
After you've added your pixel to Squarespace, it will start tracking events on your site. You’ll review and take action on this data directly in Facebook. Most data only takes a minute or two to reach Facebook, but sometimes it can take up to an hour.
- To check that Meta Pixel is working, see Facebook's suggestions.
- To view all events and other detailed pixel activity, log into your Meta Events Manager.
- To learn more about how to understand pixel data, visit Meta's Business Help Center.
How Meta Pixel events map to visitor actions
Facebook calls specific actions visitors can take on your site “events.” To see these events, use the Meta Events Manager.
Use this table to understand the name of the event on Facebook and the action it corresponds to on your site:
| Event name in Facebook | Action on your Squarespace site |
| ViewContent | A visitor opens a store page |
| Search | A visitor searches your site |
| AddtoCart | A visitor clicks Add to Cart or Buy Now on any product details page, quick view, product block, or summary block |
| InitiateCheckout | A visitor proceeds to the checkout page |
| AddPaymentInfo | A visitor clicks Continue at the Payment step during checkout |
| Purchase | A visitor completes their purchase and proceeds to the Order Confirmation page. See below for more information. |
| Lead | A visitor signs up for a mailing list through a newsletter block, promotional pop-up, cover page, or at checkout |
| CompleteRegistration | A visitor creates a customer account |
Purchase events
Purchase events aren't created for test orders, and don't differentiate between one-time purchases and subscriptions. If a customer buys a subscription product, only the first order creates a purchase event.
Visitor data Meta Pixel tracks
Since you might need to know this information for your site’s privacy policy, here’s a explanation of the exact data Meta Pixel can see about your visitors. Facebook can read visitor data from any of these pages:
- Store pages
- Checkout page
- Any page with a search block
- Any page with a newsletter block or promotional pop-up
- Any page where a customer creates an account
This is how Meta Pixel works and isn’t within Squarespace’s control. To see the data Pixel collects from your site, use the Meta Events Manager.
Use this table to understand the visitor data Facebook collects for each event.
| Facebook event name | Data collected |
| ViewContent | - Page name - Product or product group name - Product SKU |
| Search | - Search query - Search result the visitor clicked on - Any tags or categories related to the search results |
| AddtoCart | - Product name - Product SKU - Product type - Order subtotal - Order currency |
| InitiateCheckout | - Product name - Product SKU - Product type - Order subtotal - Order currency - Number of items |
| AddPaymentInfo | Pixel records the event, but no additional data |
| Purchase | - Product name - Product SKU - Product type - Order subtotal - Order currency - Number of items |
| Lead | Pixel records the event, but no additional data |
| CompleteRegistration | Pixel records the event, but no additional data |
Remove Meta Pixel
To stop Pixel from tracking new events from your site, follow these steps:
- Open the Meta Pixel & Ads panel.
- Delete the information in the Pixel ID field, and save your changes.
After removing the ID, Facebook will no longer track new visitor data from your site. You can still view past events in your Facebook Events Manager.
Where to go for support and questions
For help on any of the steps covered in this guide, contact us. For all other help with Meta Pixel—including creating a pixel, reviewing metrics, and setting up dynamic ads—visit the Meta Business Help Center, or Squarespace Forum.
FAQ
Can I see my pixel data in analytics?
No. Meta Pixel data doesn’t sync with Squarespace analytics. To see your pixel activity, log into your Meta Events Manager.
Alternatively, you can view traffic and conversion activity unrelated to Meta Pixel using traffic sources analytics.
What should I put in my privacy policy about Meta Pixel?
While we can't provide specific language to use in your terms or policies, we suggest reviewing these resources:
- Facebook’s suggestions on what information to provide for cookie consent policies
- Facebook’s Data Policy
- Facebook’s Cookie Policy
- Our guide on sharing policies and terms on your site
I don't have pixel code in code injection, but I still see an error message when I add my pixel ID
If you're seeing a red error message in the Meta Pixel panel, but your Code injection panel looks correct, you may have Meta Pixel code in Google Tag Manager.
To fix this, remove the pixel code from Google Tag Manager and publish the changes in Google. After you save those changes, return to your Squarespace site and add your pixel ID.
Was this article helpful?
Yes No
582 out of 902 found this helpful
Yes No
Using Meta Pixel with Squarespace
