vuepress-plugin-adsense

Google AdSense Plugin for VuePress

Usage no npm install needed!

<script type="module">
  import vuepressPluginAdsense from 'https://cdn.skypack.dev/vuepress-plugin-adsense';
</script>

README

Google AdSense Plugin for VuePress

Sometimes you might want ad some ads to monetize your VuePress-based documentation site or blog.

Install

To install the VuePress plugin run one of the following commands:

npm install vuepress-plugin-adsense

# or

yarn add vuepress-plugin-adsense

Configuration

Add the vuepress plugin in your site or theme config file. The configuration is done as part of the plugin-configuration. Your configuration file is usually located under .vuepress/config.js. Extend it with this line:

module.exports = {
  plugins: [
    'google-adsense': { adClient: 'ca-pub-9502576386405849' }

    // other plugins
    // ...
  ]
}

You will get the required parameters from Google AdSense.

For more details on how to work with VuePress plugins check the official docs.

License

This package is release under the MIT license by Peter Thaleikis.