Gatsby Book Launch

“The missing guide to the modern web” launches on Thursday, Sep 29th: Modular: The Web’s New Architecture

ContactSign Up for Free
Community Plugin
View plugin on GitHub

gatsby-plugin-optimizely-js

A Gatsby plugin to add an Optimizely JS Snippet to your site.

Install

$ npm install --save gatsby-plugin-optimizely-js

How to use

Setup

In your gatsby-config.js file:

plugins: [
  {
    resolve: `gatsby-plugin-optimizely-js`,
    options: {
      // The optimizely id of the project. 
      // This is the number that appears in the snippet.
      optimizelyId: '123456789',
    }
  }
];
© 2022 Gatsby, Inc.