
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Cleanly integrates facebook pixel into your projects.
npm install --save fbq
import { init, track } from 'fbq'
const pixel = 'xxxxxxxxxxxxxxx' // https://facebook.com/business/help/742478679120153
init(pixel)
track('PageView')
import { init, track, trackCustom } from 'fbq'
const pixel = 'xxxxxxxxxxxxxxx' // https://facebook.com/business/help/742478679120153
const advancedMatching = {
email: 'john@example.com',
id: 'xxxxxxxxxxx'
} // https://www.facebook.com/business/help/611774685654668
const options = {
autoConfig: false
} // https://developers.facebook.com/docs/facebook-pixel/advanced#automatic-configuration
init(pixel)
track('PageView', advancedMatching, options)
Ƭ TrackType: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | "PageView"
Defined in index.ts:33
Const
init▸ init(pixelId
: string, advancedMatching
: object, options
: object): boolean
Defined in index.ts:4
Parameters:
▪ pixelId: string
▪Default value
advancedMatching: object= {}
▪Default value
options: object= { autoConfig: true }
Name | Type | Default |
---|---|---|
autoConfig | boolean | true |
Returns: boolean
Const
track▸ track(trackType
: TrackType, options?
: any): boolean
Defined in index.ts:39
Parameters:
Name | Type |
---|---|
trackType | TrackType |
options? | any |
Returns: boolean
Const
trackCustom▸ trackCustom<T>(trackType
: T, options?
: any): boolean
Defined in index.ts:49
Type parameters:
▪ T: string
Parameters:
Name | Type |
---|---|
trackType | T |
options? | any |
Returns: boolean
License: MIT
FAQs
Facebook pixel
The npm package fbq receives a total of 3,209 weekly downloads. As such, fbq popularity was classified as popular.
We found that fbq 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.