Skip to content

SurinderBhomra/gatsby-plugin-google-adsense

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-plugin-google-adsense

Add Google Adsense to your Gatsby site.

Install

npm install --save gatsby-plugin-google-adsense

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-google-adsense`,
      options: {
        googleAdClientId: "YOUR_GOOGLE_ADSENSE_TRACKING_ID",
        head: false // Optional
      }
    }
  ]
};

Options

googleAdClientId

Here you place your Google Adsense tracking id.

head

Here you can define where to place the tracking script. With head:true it will placed in the header, with head:false it will placed in the body. Defaults to false.

About

A Gatsby plugin to easily add a google adsense to your gatsby site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%