gatsby-plugin-facebook-pixel-lazy
v1.1.3
Published
Gatsby plugin to add facebook pixel onto a site
Downloads
69
Maintainers
Readme
gatsby-plugin-facebook-pixel-lazy
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-lazy
How to use
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-facebook-pixel-lazy`,
options: {
pixelId: "pixel id here",
timeout: 3666, // a duration in ms. Defaults to 500
},
},
];