Socket
Socket
Sign inDemoInstall

vuepress-plugin-baidu-google-analytics

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vuepress-plugin-baidu-google-analytics

Google-analytics and Baidu-tongji plugin for vuepress


Version published
Weekly downloads
8
Maintainers
1
Install size
6.33 kB
Created
Weekly downloads
 

Readme

Source

vuepress-plugin-baidu-google-analytics

vuepress npm npm

Google analytics and Baidu tongji plugin for vuepress

Install

yarn add -D vuepress-plugin-baidu-google-analytics
# OR
npm install -D vuepress-plugin-baidu-google-analytics

Usage

module.exports = {
  plugins: [
    ['vuepress-plugin-baidu-google-analytics', {
      hm: 'abcdefghijklmnopqrstuvwxyz123456',
      ga: 'abcdefghijklmnopqrstuvwxyz123456',
      ignore_hash: false
    }]
  ]
}

Options

hm

  • Type: string
  • Default: undefined

Provide the Baidu Tongji ID to enable Baidu Tongji.

ga

  • Type: string
  • Default: undefined

Provide the Google Analytics ID to enable Google Analytics.

ignore_hash

  • Type: boolean
  • Default: false

If enable, same page with different hash (after #) will not be count multiple times.

Keywords

FAQs

Last updated on 18 Apr 2020

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