Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamdasilva/nuxt-twitter-pixel-module
https://github.com/williamdasilva/nuxt-twitter-pixel-module
nuxt-module nuxtjs twitter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/williamdasilva/nuxt-twitter-pixel-module
- Owner: WilliamDASILVA
- License: mit
- Created: 2017-11-06T13:19:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-08T10:30:28.000Z (almost 3 years ago)
- Last Synced: 2023-12-19T17:14:21.984Z (about 1 year ago)
- Topics: nuxt-module, nuxtjs, twitter
- Language: JavaScript
- Size: 229 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nuxt-twitter-pixel-module
[![npm (scoped with tag)](https://img.shields.io/npm/v/nuxt-twitter-pixel-module/latest.svg?style=flat-square)](https://npmjs.com/package/nuxt-twitter-pixel-module)
[![npm](https://img.shields.io/npm/dt/nuxt-twitter-pixel-module.svg?style=flat-square)](https://npmjs.com/package/nuxt-twitter-pixel-module)
[![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com)> A NuxtJS module thats injects Twitter Pixel code
## Table of Contents ##
* [Requirements](#requirements)
* [Install](#install)
* [Getting Started](#getting-started)
* [License](#license)## Requirements
* npm or yarn
* NuxtJS
* NodeJS## Install
```bash
$ npm install --save nuxt-twitter-pixel-module
// or
$ yarn add nuxt-twitter-pixel-module
```## Getting Started
Add `nuxt-twitter-pixel-module` to `modules` section of `nuxt.config.js`.
```js
{
modules: [
// Simple usage
'nuxt-twitter-pixel-module',// With options
['nuxt-twitter-pixel-module', {
/* module options */
track: 'PageView',
pixelId: 'TWITTER_PIXEL',
}],
]
}
```
or even
```js
{
modules: [
'nuxt-twitter-pixel-module',
],
twitter: {
/* module options */
track: 'PageView',
pixelId: 'TWITTER_PIXEL_ID',
},
}
```## License
[MIT License](./LICENSE)