Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 546 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 546 Bytes

gatsby-plugin-optimizely-js

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

Install

$ npm install --save @crometrics/gatsby-plugin-optimizely-js

How to use

Setup

In your gatsby-config.js file:

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