Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-amazon-onetag

Easily add Amazon oneTag to your Gatsby site.

Install

npm install --save gatsby-plugin-amazon-onetag

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-plugin-amazon-onetag`,
    options: {
      // Grab this from https://affiliate-program.amazon.com/home/tools/onetag
      adInstanceId: "YOUR_AD_INSTANCE_ID",
      
      // Include Amazon oneTag in development.
      // Defaults to false meaning Amazon oneTag will only be loaded in production.
      includeInDevelopment: false,
      
      // Default marketplace is US
      marketplace: "US"
    }
  }
]
© 2023 Gatsby, Inc.