gatsby-plugin-twitter-pixel

Gatsby plugin to add twitter pixel onto a site

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gatsby-plugin-twitter-pixel
122.0.24 years ago4 years agoMinified + gzip package size for gatsby-plugin-twitter-pixel in KB

Readme

gatsby-plugin-twitter-pixel
Easily add Twitter Pixel to your Gatsby site. At this time, 'PageView' events is triggered via onRouteUpdate.

Install

npm install --save gatsby-plugin-twitter-pixel

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-plugin-twitter-pixel`,
    options: {
      pixelId: 'pixel id here',
    },
  },
]
Credit
Thanks to https://github.com/gabeskipio/gatsby-plugin-facebook-pixel for a great base for this plugin!