Socket
Socket
Sign inDemoInstall

vuepress-plugin-google-adsense2

Package Overview
Dependencies
113
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vuepress-plugin-google-adsense2

VuePress 2 plugin - google-Adsense


Version published
Weekly downloads
10
decreased by-16.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 16 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc