Skip to main content
Community Plugin
View plugin on GitHub
See starters using this

Deprecation warning / new version

Looking for a more robust and up-to-date version of this Gatsby Segment plugin? The following plugin has a few additional features and will be kept up to date as Gatsby migrates to v2:

Also note this repo will be deprecated in the near future in favor of the one above. Currently, we cannot guarantee this repo works with Gatsby v2.

gatsby-plugin-segment

A Gatsby plugin for Segment.

Usage

In your gatsby-config.js, add:

module.exports = {
  plugins: [
    // your other plugins...
    {
      resolve: 'gatsby-plugin-segment',
      options: {
        writeKey: 'YOUR WRITE KEY'
      }
    }
  ]
}

License

MIT

Docs
Tutorials
Plugins
Blog
Showcase