2.0.0 • Published 2 years ago

gatsby-plugin-hubspot v2.0.0

Weekly downloads
5,002
License
MIT
Repository
github
Last release
2 years ago

gatsby-plugin-hubspot

Current npm package version

Gatsby plugin to add a HubSpot embed code to your site.

Installation

npm install --save gatsby-plugin-hubspot

Usage

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "gatsby-plugin-hubspot",
      options: {
        trackingCode: "1234567",
        respectDNT: false,
        productionOnly: true,
      },
    },
  ],
}

Options

respectDNT

By enabling this option, visitors with "Do Not Track" enabled will have a __hs_do_not_track cookie placed in their browser. This prevents the HubSpot tracking code from sending any information for the visitor.

More information about HubSpot cookies and privacy can be found in the HubSpot Tracking Code API documentation.

productionOnly

Only load the script when process.env.NODE_ENV is set to production.

License

MIT © Hutson Inc

1.3.7

2 years ago

1.3.6

2 years ago

1.3.8

2 years ago

2.0.0

2 years ago

1.3.5

3 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

6 years ago