https://github.com/jimizai/nuxt-analytics
Google And Baidu Analytics module for Nuxt
https://github.com/jimizai/nuxt-analytics
analytics baidu google module nuxt nuxt-module typescript
Last synced: 2 months ago
JSON representation
Google And Baidu Analytics module for Nuxt
- Host: GitHub
- URL: https://github.com/jimizai/nuxt-analytics
- Owner: jimizai
- License: mit
- Created: 2020-11-19T06:28:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-18T06:07:16.000Z (over 5 years ago)
- Last Synced: 2025-03-27T21:35:29.836Z (about 1 year ago)
- Topics: analytics, baidu, google, module, nuxt, nuxt-module, typescript
- Language: JavaScript
- Homepage:
- Size: 195 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# analytics
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![License][license-src]][license-href]
> Google And Baidu Analytics Module for Nuxt.js
[📖 **Release Notes**](./CHANGELOG.md)
## Setup
1. Add `analytics` dependency to your project
```bash
yarn add analytics # or npm install analytics
```
2. Add `analytics` to the `modules` section of `nuxt.config.js`
```js
{
modules: [
// Simple usage
'analytics',
// With options
['analytics', { /* module options */ }]
]
}
```
## Development
1. Clone this repository
2. Install dependencies using `yarn install` or `npm install`
3. Start development server using `npm run dev`
## License
[MIT License](./LICENSE)
Copyright (c) dyk <359743984@qq.com>
[npm-version-src]: https://img.shields.io/npm/v/analytics/latest.svg
[npm-version-href]: https://npmjs.com/package/analytics
[npm-downloads-src]: https://img.shields.io/npm/dt/analytics.svg
[npm-downloads-href]: https://npmjs.com/package/analytics
[github-actions-ci-src]: https://github.com//workflows/ci/badge.svg
[github-actions-ci-href]: https://github.com//actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/github/.svg
[codecov-href]: https://codecov.io/gh/
[license-src]: https://img.shields.io/npm/l/analytics.svg
[license-href]: https://npmjs.com/package/analytics