LogoLogo
Back to PageFly.ioVideo Tutorials
English 🇺🇸
English 🇺🇸
  • PageFly Help Center
  • Getting Started
    • Overview
    • Quick start
      • How to Install PageFly
      • How To Use PageFly | Get started in 5 mins
      • How to Create a New Page from PageFly Templates
      • How can I access the PageFly LiveChat?
      • How PageFly work with your Shopify theme?
    • Pricing and billing
      • PageFly pricing plan
      • How PageFly billing work?
      • What happens if I uninstall PageFly?
      • PageFly refund policy
  • Pages & Sections Creation
    • Overview
    • General
      • Setting up PageFly Pages
      • What type of pages that PageFly support?
      • How to use PageFly pages and sections?
      • How to export and import PageFly pages and sections
    • Pages
      • How to create a Homepage with PageFly?
      • How to create a Product page with PageFly
      • How to create a Collection page with PageFly
      • How to create a Blog post page with PageFly
      • How to create a Password page with PageFly
      • How to create a FAQs page with PageFly?
      • How to create a Coming soon page with PageFly
      • How to create an About us page with PageFly
      • How to create a Contact Us page with PageFly
      • How to create a Landing Page with PageFly?
      • How to create A/B testing page with PageFly
    • Sections
      • How to use premade section and saved section to build page?
      • How to create a basic section with image and text
      • How to use parallax effect in a PageFly section?
      • How to create a full-width section in PageFly
      • How to make a sticky section without code in PageFly
  • Page Structure & Elements
    • Overview
    • Editor
      • User interface
        • How to work with PageFly editor?
        • How to work with PageFly on mobile?
        • Page Editor – Element Inspector
        • Page Editor - General Tab
        • Page Editor - Styling Tab
        • How to use Page outline to organize page layout?
        • How to make impressive mobile responsive page?
        • How to use autosave and version history ?
      • Extra Functions
        • How to manage custom option swatches for product variants?
        • How to use Global Styles to customize styles to use for all PageFly pages
        • How to use trash to manage deleted pages, sections, and media files?
        • How to Add Custom Font in PageFly
        • How to manage image and video in PageFly?
    • PageFly Elements
      • Universal Elements
      • Containers
        • Layout
        • Slideshow
        • Tabs
        • Accordion
        • Content List
      • Basic
        • Heading
        • Paragraph
        • Button
        • List
        • Icon
        • Divider
        • HTML/Liquid
      • Media
        • Image
        • Youtube video
        • Vimeo video
        • HTML video
        • Soundcloud
      • Social
        • Instagram feed
        • Facebook like & share
        • Facebook feed
        • Twitter feed
      • Advanced
        • QR code
        • Table
        • Countdown
        • Google map
        • Progress
        • Mailchimp form
    • Shopify elements
      • Custom Content
        • App blocks
      • Product
        • Product Variant Metafield
        • Product list
        • Product details
        • Product media
        • Product title
        • Product vendor
        • Product price
        • Product description
        • Product variant
        • Product quantity
        • Product Add to cart
        • Product view details
        • Product Metafield
        • Dynamic checkout button
      • Collection
        • Collection title
        • Collection image
        • Collection list
        • Collection view details
        • Collection details
        • Collection description
      • Form
        • Customer form
        • Customer form field
        • Customer form button
        • Contact form
        • Contact form field
        • Contact form button
        • Search form
      • Blog posts
        • Blog post list
        • Blog post details
        • Blog post image
        • Blog post title
        • Blog post content
        • Blog post meta
    • Optimization
      • How to use custom code editor to customize your page?
      • Page Analytics
      • How to speed up your Shopify store?
      • How to set up Facebook Pixel to understand the actions people take on website?
      • How to publish PageFly page to Shopify menu navigation?
      • How to use the Zakeke Product Customizer on PageFly pages?
      • How to use Langify to translate my page?
      • How to use Weglot to translate my pages?
      • How to use T Lab to translate PageFly’s page?
      • JSON Template with PageFly
      • How to Optimize Images with TinyIMG in the PageFly editor?
      • How to use Shoplift A/B Testing with PageFly?
      • How to use SEOAnt:AI SEO & Image Optimizer with PageFly?
      • Black Friday Sale Ideas
      • Optimize Pages for CRO with PageFly Elements
      • Optimize Sale On Valentines Day
      • How to set up Christmas Sale Page with PageFly | Best Guide in 2023
      • How to create a Flash sale section - Back to School
      • Optimize Your Store for Mother's Day: Create a Gift Guide with PageFly
    • Main Use Case
      • Align Elements on a Page
      • Direct to Links, Sections, Pop-ups
      • Edit Spacing, Margin and Padding
      • Flex Feature
      • Upload Files to Page
  • Integrations
    • Third-party Elements
      • How to activate integrated third party Shopify apps to use on your pages
      • What apps does PageFly integrate with?
      • Review & Rating
      • Upsell & Cross-sell
      • Badge & Seal
      • Appointment Booking
      • Delivery & Pickup
      • Subscriptions
      • Order Tracking
      • Upload Fields
      • Email Marketing
      • Product Information
      • Push Notifications
      • Referral & Affiliate Marketing
      • Image & Media
      • Loyalty & Rewards
      • Sustainability
      • Gifts
      • Internationalization
      • Advertising
      • Support
      • SMS Marketing
  • FAQ & Troubleshooting
    • Overview
    • FAQs
      • Issues with Shopify themes when using PageFly
      • How we comply with GDPR
      • The URL address of my page
      • PageFly Page editor - FAQs
      • Elements - FAQs
    • Troubleshooting
      • Live site issue
        • Cart Drawer does not Automatically Update
        • Responsive mobile horizontal scroll issue
        • YouTube, HTML Videos do not autoplay issue
        • Page not fully displayed in theme preview mode
        • Can't create locales file
        • Can't create theme.pagefly.liquid
        • How to hide Shopify's Default Product Details
        • PageFly Page List Won't Stop Loading
        • Remove the blank space on top of the page
        • Blog page not updated successfully
        • The page's style is broken
      • Error messages
        • PageFly Page List Won't Stop Loading
        • Page Size Limit
        • Limit elements on a page
        • Unable to import your data
        • Limit image size
        • Unknown error
  • Latest Update
    • PageFly is now compatible with Online Store 2.0
    • PageFly Referral Program
    • PageFly old pricing plan
  • PageFly Affiliate Program
    • Affiliate Success: Understanding what PageFly can do for Merchants
    • Affiliate Success: Dos & Don'ts - Everything to Know about Becoming a Successful PageFly Affiliate
    • Affiliate Success: Frequently Asked Questions
Powered by GitBook
LogoLogo

Product

  • Templates
  • Pricing
  • Happy Customer

Resource

  • Blog
  • Academy
  • Video Tutorials
  • Community
  • Feedback

Partners

  • Our Partners
  • Affiliate Program

Company

  • About Us
  • Careers
  • Privacy Policy
  • Terms of Service

Copyright © 2025 PageFly. All rights reserved.

On this page
  • Overview
  • Requirements
  • How To Setup Facebook Pixel
  • Use Cases
  • Common Issues with Facebook Pixel
  • Frequently Asked Questions

Was this helpful?

Edit on GitHub
  1. Page Structure & Elements
  2. Optimization

How to set up Facebook Pixel to understand the actions people take on website?

Last updated 14 hours ago

Was this helpful?

Overview

Facebook Pixel is an analytics tool that allows you to measure the effectiveness of your advertising by understanding the actions people take on your website. Therefore, plays very important roles!

Therefore, Facebook Pixel plays an important role to monitor your Shopify Store Performance.

You can read more about .

Requirements

Before getting started, ensure you have:

  • A

  • A Shopify online store that is not password protected

  • connected to your business’s Facebook page

  • Administrator permissions

  • A Facebook Ads account is set up and ready to go. If you haven't done that yet, simply follow Facebook's step-by-step guide, which can be found .

If you have successfully setup Facebook Pixel on your account, skip Step 2.

How To Setup Facebook Pixel

Step 1: Setup Facebook Pixel

First, in , go to Business Settings > Click Data Source > Select Pixels > Click More

Next, choose your pixel name > Click Continue > Set up pixel now > Add code using partner integrations

Then choose Shopify as a Partner.

Once you’re all set, it’s time to add a Facebook Pixel ID to your Shopify store.

Step 2: Install Facebook Pixel to Your Store

Make sure you’re on the Events Manager page. Copy the unique pixel ID under your account’s name.

Go back to your Shopify Admin > Head to Online store > Preferences > Paste the Pixel ID into the Facebook Pixel section > Hit Save.

Voila! You're all set to add a Facebook Pixel ID to your store.

Step 3: Add Facebook and Instagram App

  1. From Shopify Admin, go to Sales Channel > Preferences > On Facebook Pixel section, select Set up Facebook.

2. You will be directed to the Shopify App store page if you haven’t installed the app yet. After that, click on Install.

Note: Once you click on the Set up Facebook button, you’ll redirect to the Shopify App Store to install the Facebook & Instagram app.

3. Now, on the left sidebar, you’ll see a new sale channel which is Facebook & Instagram.

Configuration

General settings

Now hop on over to the page you want to set up tracking.

The Tracking option for Facebook Pixel is available in 12 elements including:

There are 10 event types you can choose from, which are:

  • Search

  • View Content

  • Add To Cart

  • Add To Wishlist

  • Initiate Checkout

  • Add Payment Info

  • Purchase

  • Lead

  • Complete Registration

  • Custom Event

Once you choose an event type, the event code will be generated automatically.

Check Facebook Pixel Event Tracking

In Business Manager, select All Tools on the left sidebar > Choose Ads Manager.

Go to Ad Group tab > Click on column icon > Select Customize Columns.

Select the menu again > Choose Events Manager. You will see the result of your pixel.

You can watch this video for more details:

Use Cases

Below you’ll find the most frequently asked questions related to setting up the Facebook Pixel on your pages.

How To Fire A Specific Facebook Event When PageFly Page Is Loaded?

  • Step 1: Head to the Editor

  • Step 2: Insert the code below into the Custom Javascript option

window.trekkie.load = function () {
  fbq("track", "ViewContent");
};

_window.addEventListener("load", function () {
  _;

  _fbq("track", "ViewContent");
  _;

  _;
});
_;
  • Step 3: Click Save change and Publish the page

  • Step 4: Check the result with the Facebook Pixel Helper

Tips

If you want to send additional objectives to the Facebook event, for example, “content_name” and “content_type” please use the following code:

window.trekkie.load = function () {
  fbq("track", "ViewContent", { content_name: "Bearie Backpack", content_type: "product" });
};

window.addEventListener("load", function () {
  fbq("track", "ViewContent", { content_name: "Bearie Backpack", content_type: "product" });
});

For example, Facebook ViewContent supports the following objectives: content_ids, content_category, content_name, content_type, contents, currency, value.

Check the result with Facebook Pixel Helper. As you can see there are custom parameters sent including content_type and content_name.

How to fire the Facebook Pixel when the user scrolls a specific section?

  • Step 1: Name your section.

In our example, it’s “countdown”.

  • Step 2: Add custom Javascript code.

Two things you need to pay attention to.

Firstly, the jQuery function trigger the section ID with the name “countdown”.

Secondly, for our example, we send Facebook Pixel “ViewContent” without any objects.

  • Step 3: Check the result

As you can see the section that we assigned a unique ID is called “countdown”, and after scrolling that part the Facebook pixel has been fired.

How To Fire Multiple Facebook Pixels On The Same Page?

Inside the Customer Javascript settings please include code below:

As a result you should see two pixels fired on the page load.

Common Issues with Facebook Pixel

Error Messages

Error message: “AddToCart Event missing some deduplication parameters” or “Purchase Event missing some deduplication parameters”

  • Reason: You have not successfully set up Facebook Pixel for your store.

  • Solution: Please refer to the 3 setup steps above to check again if you missed anything.

Facebook Can Not Track Purchases Through ‘Shopify Thank You Page’

Solution:

  • Step 1: Check if Facebook Pixel is completely set up in Online Store > Preferences. Refer to the steps above. Next, check to make sure your Facebook Pixel tracking app is working properly.

  • Step 2: Check if Facebook Pixel is set up with Product Add to Cart, not the Button element.

  • Step 3: Check if the Header and Footer are turned on.

Facebook Is Double Tracking One Event

Reason: You manually added an event for your PageFly page, while your Theme automatically fired the event before.

Check to see if it’s a product page built with PageFly or not.

Then, if you get the Theme from Themes Marketplace (themes.shopify.com), the reason may be that Facebook Pixel is already fired with Add to Cart. It leads to double tracking when you manually fired Facebook Pixel again with PageFly.Solution: Assign to None for your element you fired manually with PageFly

Sudden Disabled Facebook Tracking

Reason: Set up Facebook Pixel NOT in Online Store, but with manual code injection or within theme.liquid file.

Solution: Check the manual code or theme again.liquid file. Try to delete the manual code or restore Older versions of theme.liquid file > set up Facebook Pixel in Online Store > Preferences instead.

You may want to know how to Restore Older Versions of theme.liquid file.

For other problems that are not listed above, the suggested solution is that please ensure you are ONLY firing Facebook Pixel properly by Online Store > Preferences, NOT by any other ways. Make sure the Facebook Pixel tracking app is working.

Frequently Asked Questions

1. What is Facebook Pixel?

Facebook pixel is a piece of code, that should be embedded into your website (In this case, your Shopify Store), to measure, optimize and build audiences, with data collected from advertising campaigns.

2. Where to find Facebook Pixel?

3. What are the different types of Facebook pixels?

Three main types include standard events, custom conversions, and custom events.

Follow the 3-step process to successfully connect the to your Shopify account.

To validate your pixel implementation, install the extension. When clicked, a panel will expand to show a detailed overview of the page's pixels, including warnings, errors, and successes.

Switch your view to Conversions > Scroll down to select the that you are using > Hit Apply.

Please keep in mind for the specific Facebook Event, you can assign pre-designed objectives. Please refer to the .

Please keep in mind to replace “YOUR PIXEL ID” with your unique ID number. You can copy here.

For more details about Facebook Pixel Advanced, check .

If you have any questions feel free and our Customer Support team will get back to you ASAP.

It's under ‘Business Settings' > ‘Data Sources’ > ‘Pixel', in MetaSuites. Check out .

Setup Facebook Pixel
Facebook Pixel
Business Facebook page
Facebook Business Manager
here
Events Manager
Facebook Pixel
Heading
Button
Image
MailChimp Form
Product List
Product Image
Product Title
Product Add to cart
Product View Details
Collection Image
Collection Title
Collection View Details
Pixel Helper Google Chrome
type of pixel
Facebook Help doc
the code
this article
to submit a ticket
this article