gatsby-plugin-facebook-pixel-lazy

1.1.3 • Public • Published

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
    },
  },
];

Package Sidebar

Install

npm i gatsby-plugin-facebook-pixel-lazy

Weekly Downloads

3

Version

1.1.3

License

MIT

Unpacked Size

4.33 kB

Total Files

10

Last publish

Collaborators

  • allen.support