@aniket/gatsby-plugin-facebook-pixel

1.0.11 • Public • Published

gatsby-plugin-facebook-pixel

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

'ViewContent' can be disabled by setting disableViewContent as true in gatsby-config.js plugin options.

Install

npm i -S @aniket/gatsby-plugin-facebook-pixel

How to use

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.11
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.11
    1
  • 1.0.10
    0
  • 1.0.9
    0

Package Sidebar

Install

npm i @aniket/gatsby-plugin-facebook-pixel

Weekly Downloads

1

Version

1.0.11

License

MIT

Unpacked Size

3.88 kB

Total Files

10

Last publish

Collaborators

  • aniket