An open API service indexing awesome lists of open source software.

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

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