1.0.2 • Published 6 years ago
nuxt-facebook-pixel v1.0.2
nuxt-facebook-pixel
Nuxt.JS module & plugin for Facebook Pixel tracking initialisation & access
Setup
- Add
nuxt-facebook-pixel
dependancy to your project using npm or yarn - Add
nuxt-facebook-pixel
to themodules
section of yournuxt.config.js
{
modules: [
"nuxt-facebook-pixel"
]
},
"facebook-pixel": {
enable: true,
id: "<youridhere>"
}
Usage
export default function(context) {
context.$facebookpixel("track", "PageView");
}