Easily add Facebook Pixel to your Gatsby site. At this time, 'ViewContent' event is triggered via onRouteUpdate.
Adds dataProcessingOptions set to geocode user country and state for CCPA compliance.
npm install --save gatsby-plugin-facebook-pixel
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-facebook-pixel`,
options: {
pixelId: "pixel id here",
},
},
];