Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
vue-analytics-facebook-pixel
Advanced tools
Weekly downloads
Readme
A small wrapper around fbq. This package integrates Facebook pixel into your Vue
app.
npm install vue-analytics-facebook-pixel
Also, this library requires installing Facebook Pixel API.
import Vue from 'Vue'
import VueFacebookPixel from 'vue-analytics-facebook-pixel'
Vue.use(VueFacebookPixel)
To start using this script you will have to call init(...)
first.
/**
* Init facebook tracking pixel
* @param {String} appId
* @param {object} [data={}]
*/
Vue.analytics.fbq.init('YOUR_FACEBOOK_CODE', {
em: 'user@mail.com'
})
Make sure init(...)
is called only once.
Then you will have full access to the event(...)
method.
/**
* Event tracking
* @param {String} name
* @param {object} [data={}]
*/
Vue.analytics.fbq.event('ViewContent', {
content_name: 'Really Fast Running Shoes'
})
All component
instances can call this.$analytics.fbq
All vue-analytics-*
share the same analytics
object, where all the providers are stored.
Facebook Pixel API is required to be installed. You can skip the default window.fbq('init', 'KEY')
part and use Vue.analytics.fbq.init(...)
which will do the same.
FAQs
A small wrapper around Facebook Pixel API
The npm package vue-analytics-facebook-pixel receives a total of 255 weekly downloads. As such, vue-analytics-facebook-pixel popularity was classified as not popular.
We found that vue-analytics-facebook-pixel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.