Shopify & Ecommerce

Seeing how your customers and potential customers behave in a brick-and-mortar store is easy! Your sales team is there with them, actively using strategies to assist in boosting sales. But what if you own an eCommerce store?

This is where tools such as the Facebook pixel (now called the Meta pixel) come in.

The Meta pixel is a nifty little piece of tracking code that will help you boost sales by measuring, optimizing, and building targeted audiences.

It works by tracking the actions of your online store visitors and sending that information to Facebook. Armed with this goldmine of data, you can boost your remarketing and marketing strategies by creating more personalized product ads that increase conversion rates.

Ready to get started? Read our quick and easy step-by-step guide below!

via GIPHY

  • What Is A Facebook Pixel? 🤷‍♀️
  • Setting Up Customer Data-Sharing Level 🕵️‍♂️
  • How To Add Facebook Pixel To Shopify 2022 📲
  • Setting Up Facebook Pixel Events 👩‍💻
  • How To Change Or Remove Facebook Pixel From Shopify 🚫
  • Conclusion 🙌
  • What Is A Facebook Pixel? 🤷‍♀️

    To expand a bit on the above, the Meta pixel is an analytics tool that will help you measure selected events on your website. For example, it has the capability to track the following:

    • Page views
    • Add to cart
    • Purchase events
    • Scroll depth
    • Time on page

    This helps you better understand the effectiveness of your advertising and the actions people are taking on your Shopify store. You will be able to see awesome information such as conversion events in relation to your Instagram and/or Facebook ads, and quickly learn what works, and what doesn't.

    via GIPHY

    You can use the pixel as a stand-alone or in conjunction with the Conversions API. The Conversions API creates a more solid connection that will help the delivery system decrease your costs. But we'll dive into that a bit later.

    One last note: The standard events for Shopify are visitor activities but you can also set up additional custom events to dig a little deeper.

    Setting Up Customer Data-Sharing Level 🕵️‍♂️

    When you set up a Meta pixel on Shopify, you will need to set a customer data-sharing level. This is the amount of personal information you want to gather from your visitors; details such as name, email address phone number, address, etc.

    The customer data-sharing level you set will affect the amount of insight you will be able to receive.

    You'll be able to set the level when you are setting up the Facebook sales channel on Shopify. Your three options will be:

    • Conservative - Get some ad performance and customer targeting improvements, but prioritize sharing less information. This setting uses a Facebook Pixel, a third-party cookie that collects and shares customers’ browsing behavior on your store. Browser-based ad blockers can prevent the pixel from collecting data.
    • Enhanced - Use proven, established methods for strong ad performance. Customer activity data is shared using the Facebook Pixel, advanced matching, and Conversions API. Customers can disconnect this data from their Facebook account by changing their settings for Off-Facebook Activity.
    • Maximum - Get the best possible results. This setting is continually updated with Facebook’s latest advertising technology and shares the most data with Facebook. Customer activity data is shared using the Facebook Pixel, advanced matching, and Conversions API. Customers can disconnect this data from their Facebook account by changing their settings for Off-Facebook Activity.

    Now that you know what data can be tracked, let's dive into the setup!

    How To Add Facebook Pixel To Shopify 2022 📲

    Before we dive into our step-by-step instructions, you need to know that there are two ways to set up this nifty analytics tool; through the Facebook sales channel on Shopify or through your Facebook Events Manager.

    The sales channel option is quicker, but using the Facebook Events Manager means you can paste the piece of code into your Shopify Theme code and enable some custom pixel tracking.

    1. Setting Up A Facebook Pixel On Shopify Facebook Channel

    The easiest way to set up a pixel is via the Facebook sales channel on Shopify. During the sales channel setup, select your customer data-sharing settings.

    In the pixel set-up box, click on "Create new" and a pixel will automatically be set up. click "Confirm".

    The pixel setup won't be saved until you complete the channel setup, so accept the terms and conditions and click "submit for review".

    Once you've got the pixel set up, you can then access it via Facebook and play around with your event tracking options and make sure everything is working.

    If you get stuck, the Facebook Help Center is a fantastic resource.

    2. Setting Up A Facebook Pixel On Facebook Events Manager

    Using this method means that you may need to manually add the pixel code to your website. Shopify has a theme editing option that requires a working knowledge of HTML, CSS, JSON, JavaScript, and Shopify's own coding language, Liquid.

    The setup is fairly straightforward:

    Go to your Facebook page Events Manager.

    Click "Connect Data" and then select "Web" and "Connect".

    Name the pixel and click "Create Pixel".

    You will get a pop-up that says: "Now that you've created a pixel, enter your website URL and we'll let you know if it's eligible for integration with one of our supported partners, such as Shopify." Enter your website URL and click "Check".

    If all checks out, the URL will have a green tick next to it and you can click "Next".

    You will now be given a choice of how you want to connect your website: Conversions API and Meta pixel or Meta pixel only. It is recommended to use the Conversions API and Meta pixel as Meta pixel only means that browser-based ad blockers can prevent the pixel from collecting data.

    Once you've chosen an option, click "Next".

    You will continue to be guided through the process step-by-step. If choosing API and you are not familiar with them, this will require the help of a developer as the pixel base code will need to be installed correctly on your website in order for it to work.

    Once the pixel is set up it can be found under "Data Sources" in the right-hand menu. Here you will be able to view your active pixels and pixel IDs as well as test events, run diagnostics, view activity, and change your settings.

    Setting Up Facebook Pixel Events 👩‍💻

    We previously mentioned custom events in relation to the pixel but you might be asking, "what is a Facebook pixel event?".

    Events are actions that take place on your website. Meta has predefined standard events that can be used to log conversions, optimize for conversions, and build audiences. The predefined events are as follows:

    Website action

    Description

    Standard event code

    Add payment info

    The addition of customer payment information during a checkout process. For example, a person clicks on a button to save their billing information.

    fbq('track', 'AddPaymentInfo');

    Add to cart

    The addition of an item to a shopping cart or basket. For example, clicking an “Add to Cart” button on a website.

    fbq('track', 'AddToCart');

    Add to wishlist

    The addition of items to a wishlist. For example, clicking an “Add to Wishlist” button on a website.

    fbq('track', 'AddToWishlist');

    Complete registration

    A submission of information by a customer in exchange for a service provided by your business. For example, signing up for an email subscription.

    fbq('track', 'CompleteRegistration');

    Contact

    A telephone, SMS, email, chat, or other type of contact between a customer and your business.

    fbq('track', 'Contact');

    Customize product

    The customization of products through a configuration tool or other application that your business owns.

    fbq('track', 'CustomizeProduct');

    Donate

    The donation of funds to your organization or cause.

    fbq('track', 'Donate');

    Find location

    When a person finds one of your locations via the web, with an intention to visit. For example, searching for a product and finding it at one of your local shops.

    fbq('track', 'FindLocation');

    Initiate checkout

    The start of a checkout process. For example, clicking a “Checkout” button.

    fbq('track', 'InitiateCheckout');

    Lead

    A submission of information by a customer with the understanding that they may be contacted at a later date by your business. For example, submitting a form or signing up for a trial.

    fbq('track', 'Lead');

    Purchase

    The completion of a purchase, usually signified by receiving an order or purchase confirmation, or a transaction receipt. For example, landing on a Thank You or confirmation page.

    fbq('track', 'Purchase', {value: 0.00, currency: 'USD'});

    Schedule

    The booking of an appointment to visit one of your locations.

    fbq('track', 'Schedule');

    Search

    A search performed on your website, app, or other property. For example, product or travel searches.

    fbq('track', 'Search');

    Start trial

    The start of a free trial of a product or service you offer. For example, a trial subscription.

    fbq('track', 'StartTrial', {value: '0.00', currency: 'USD', predicted_ltv: '0.00'});

    Submit application

    The submission of an application for a product, service, or program that you offer. For example, a credit card, educational program, or job.

    fbq('track', 'SubmitApplication');

    Subscribe

    The start of a paid subscription for a product or service you offer.

    fbq('track', 'Subscribe', {value: '0.00', currency: 'USD', predicted_ltv: '0.00'});

    View content

    A visit to a web page you care about. For example, a product or landing page. View content tells you if someone visits a web page's URL, but not what they do or see on that web page.

    fbq('track', 'ViewContent');

    Source: Facebook Business Help Center

    We won't be going in-depth on this topic as you can simply follow the step-by-step process via Facebook Business Manager.

    How To Change Or Remove Facebook Pixel From Shopify 🚫

    Removing a pixel from your website is a relatively simple process. If you installed it using code, you can simply remove the pixel code from your online store theme code.

    If you used a partner integration or tag manager, then you'll need to follow the guides provided.

    Alternatively, you can just remove specific ad accounts or partners from Meta pixel via the Facebook Business Manager page under "Business settings".

    Conclusion 🙌

    Adding a Facebook pixel Shopify integration will boost your advertising campaigns by giving you valuable insight into customer behavior. What we have covered above is just the tip of the iceberg and we encourage you to dig deeper and learn more about this awesome tracking tool.

    A few examples of the capabilities include setting up targeting options, custom audiences, and custom conversions.

    For example, Custom audiences allow you to effectively retarget website visitors by tracking what pages they do and don't visit. These are just some of the great insights you have access to with the Meta pixel setup.

    via GIPHY

    By keeping track of customer behavior you can work magic with your Facebook and Instagram adverts and create solid remarketing strategies. To recap:

    1. Install the pixel through Shopify and Facebook Business Manager.
    2. Gather data about your visitors such as location, device used, and other demographic insights.
    3. Review your visitor behavior to gain valuable information.
    4. Use the insights gathered to create Facebook custom audiences, lookalike audiences, and ads tailored to those specific groups.
    5. Assess conversion events and create more effective ad strategies for your business.

    If you enjoyed this how-to guide, feel free to read through our other step-by-step guides on setting up a successful Shopify store.

    You’ve successfully subscribed to ShopifyNation
    Welcome back! You’ve successfully signed in.
    Great! You’ve successfully signed up.
    Your link has expired
    Success! Check your email for magic link to sign-in.