New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-cookie-though

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-cookie-though

Easily add cookie-though to your Gatsby site

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Easily add Cookie Though cookie consent to your Gatsby site. 😄

Install

npm install --save gatsby-plugin-cookie-though

OR

yarn add gatsby-plugin-cookie-though

Usage

view the documentation on how to configure the app.

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-cookie-though`,
      options: {
        config: {
          policies: [
            {
              id: "essential",
              label: "Essential Cookies",
              description:
                "We need to save some technical cookies, for the website to function properly.",
              category: "essential",
            },
            {
              id: "functional",
              label: "Functional Cookies",
              category: "functional",
              description:
                "We need to save some basic preferences eg. language.",
            },
            {
              id: "statistics",
              label: "Statistics",
              category: "statistics",
              description:
                "We need to save some technical cookies, for the website to function properly.",
            },
            {
              id: "social",
              label: "Social Media Cookies",
              category: "social",
              description:
                "We need to save some social cookies, for the website to function properly.",
            },
          ],
          permissionLabels: {
            accept: "Accept",
            acceptAll: "Accept all",
            decline: "Decline",
          },
          cookiePreferenceKey: "cookie-preferences",
          header: {
            title: "cookie though?",
            subTitle: "You're probably fed up with these banners...",
            description:
              "Everybody wants to show his best side - and so do we. That’s why we use cookies to guarantee you a better experience.",
          },
          cookiePolicy: {
            url: "https://inthepocket.com/cookie-policy",
            label: "Read the full cookie declaration",
          },
        },
      },
    },
  ],
}

Keywords

FAQs

Package last updated on 06 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc