Using Pixels and Event Source Groups

Facebook Analytics allows you to measure web activity using either the Javascript SDK or the Facebook Pixel—both offer the same functionality in Facebook Analytics.

Web Events doesn't support ads measurement at this time. Median session time and total time spent reports are not available yet. These features will be added in the future.

When should I use the Javascript SDK or the Facebook Pixel?

If you already have an advertising account with Facebook and have embedded the Facebook Pixel in your website, then there's no need to update your web code with the Javascript SDK—you should continue using the Facebook Pixel. Keep in mind that the Facebook Pixel is optimized to fire as quickly and efficiently as possible.

If you don't have an advertising account with Facebook or if you're already using the Javascript SDK on your website for Facebook Login or other products, then implementing the Javascript SDK is the easiest way to start measuring web activity in Facebook Analytics. Use our quickstart guide to get started with the Javascript SDK.

Using the Facebook Pixel in Facebook Analytics

If you're already using the Facebook Pixel, you'll instantly start seeing web activity data in Facebook Analytics without making any changes. You'll also be able to use all of the features of Facebook Analytics, such as creating funnels to measure conversion, viewing cohorts to measure changes over time, and using demographics and segments to better understand particular audiences. For example, segments allow you to see the demographics of your top 10% of users or compare how one demographic group converts in your funnel at a different rate than others.

In order to get the most out of Facebook Analytics, you should trigger the page view event on all pages in your website. This will ensure that you're getting accurate user counts and session length time. If the page view event isn't being triggered on all pages of your website, then your active user numbers and session times will only measure activity on the pages where the page view event is being triggered.

See the Facebook Pixel documentation to learn more about how to use the Facebook Pixel.

Omni-channel Analytics with the Facebook Pixel

Facebook Analytics offers a complete view of the customer journey across platforms and devices because the data shows that people often start a task on one device and complete it on another. For example, people may research a product on their phone, but complete a purchase from a desktop computer.

Omni-channel analytics are immediately available in the Facebook Analytics dashboard for businesses using the Javascript SDK and who use the same app ID for their native mobile app and their website.

Mobile apps and Facebook Pixels use different IDs. To see unified analytics for these parts of your business, you can use event source groups.

You can create an event source group in Facebook Analytics.

Event source groups allow you to link Facebook Pixels and app IDs, which allows you to see all of your data in Facebook Analytics. Viewing mobile app data and Facebook Pixel data together shows you omni-channel analytics, or a complete view of your customer journey across platforms and devices. Event source groups can also include multiple mobile apps and/or multiple Facebook Pixels. No matter how large or complex your business is, you can still get a unified view of your customers across all of your properties.

Creating an Event Source Group

Follow these steps to create an Event Source Group.

  1. From the Facebook Analytics page, click New Events Source Group.

    If you don't already have a Facebook Business Manager Account, then you'll be given an opportunity to create one.

  2. The New Event Source Group button is available only when there is more than one event source.

  3. Choose the Business Manager Account that you want to create the new Event Source Group for, and then click Continue.

  4. Enter a name for your new Event Source Group.

  5. Select the event sources that you want to add to this group, and then click Create Group.

Your new Event Source Group is created, and you can now view its analytics by clicking View Analytics.