Skip to content

bturner-cfn/gatsby-plugin-facebook-pixel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-plugin-facebook-pixel

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.

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

About

Gatsby plugin to add facebook pixel onto a site

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%