See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub

gatsby-plugin-facebook-pixel

Easily add Facebook Pixel to your Gatsby site. At this time, ‘ViewContent’ event is triggered via onRouteUpdate.

Install

npm install --save gatsby-plugin-facebook-pixel

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-plugin-facebook-pixel`,
    options: {
      pixelId: "pixel id here",
    },
  },
];
© 2022 Gatsby, Inc.