Skip to content

iamthefox/gatsby-plugin-delighted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-plugin-delighted

Easily add Delighted NPS widget to your Gatsby site.

Install

npm install --save gatsby-plugin-delighted

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-delighted`,
      options: {
        organisationKey: "YOUR_ORGANISATION_UNIQUE_ID"
      }
    }
  ]
};

If you want to create surveys, you simply invoke delighted as normal -

delighted.survey({
    email: "customer@hemandstitch.com", // customer email (optional)
    name: "Bailey Dixon",               // customer name (optional)
    createdAt: "2019-01-01T12:00:00Z",  // time subscribed (optional)
    properties: {                       // extra context (optional)
      plan: "Medium",
      company: "Hem & Stitch"
    }
});

For advanced options, please read the full API documentation.

Special Thanks

  • Skrilla for letting me publish this code written during work hours :)

About

Easily add Delighted NPS widget to your Gatsby site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published