Using Meta Pixel with Squarespace

Integrate with Meta Pixel to promote the products you sell, and drive more traffic to your site.

Last updated January 21, 2025

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.

Accessing this feature

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:

  1. Log into your Squarespace site.
  2. Open the Code Injection panel.
  3. 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.
  4. In the Order Confirmation Page field, look for similar pixel code and delete it.
  5. Click Save at the top of the panel.
  6. 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:

  1. If you haven't already, follow Facebook’s steps to create a Meta Pixel.
  2. 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:

  1. Open the Meta Pixel & Ads panel.
  2. In the field below Pixel ID, add the pixel ID you copied from Facebook. You can only add one pixel ID.
  3. Click Save.

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.

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:

  1. Open the Meta Pixel & Ads panel.
  2. 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:

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.

Footer Image
  • Get help from our community

  • Get help from our community on advanced customizations.

  • Hire a Squarespace Expert

  • Stand out online with the help of an experienced designer or developer.

Using Meta Pixel with Squarespace