vuepress-plugin-google-adsense2
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

vuepress-plugin-google-adsense2

English | 简体中文

Note: This plugin is provided for VuePress 2

Google adsense plugin for VuePress 2, automatically add Google Ad to your VuePress site.

npm GitHub license

Install

yarn add -D vuepress-plugin-google-adsense2
# OR
npm install -D vuepress-plugin-google-adsense2

Usage

import googleAdSensePlugin from 'vuepress-plugin-google-adsense2';

module.exports = {
  plugins: [
    googleAdSensePlugin({
      id: 'ca-pub-xxxxxxx',
    }),
  ],
};

More plugins usage, see also: VuePress Plugins

Options

id

  • Type: string

  • Details:

    In the code block provided to you by AdSense, find the word data-ad-client. The id should start with 'ca-pub-'. You can follow the instructions here to find your AdSense code.

    Or you can use Publisher ID and add the string 'ca-' in front.You can follow the instructions here to find your Publisher ID.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.31latest
1.0.3-beta.40beta

Version History

VersionDownloads (Last 7 Days)Published
1.0.31
1.0.3-beta.40
1.0.3-beta.30
1.0.3-beta.20
1.0.3-beta.10
1.0.3-beta.02
1.0.23
1.0.10
1.0.00

Package Sidebar

Install

npm i vuepress-plugin-google-adsense2

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

4.94 kB

Total Files

7

Last publish

Collaborators

  • john60676