0.1.0 • Published 6 years ago

facebook-pixel-event-injection v0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Facebook Pixel Injection

Simple Facebook Pixel Injection.

pixel_id    --> string (required)
event       --> string (required)

Install

Install via npm

$ npm i facebook-pixel-event-injection

Install via CDN

<script src="https://placedv-npm.s3-eu-west-1.amazonaws.com/facebook_pixel_event_injection/index.js"></script>

Simple Usage

To make it work properly, it must have only one event in the declaration function.

import facebook from 'facebook-pixel-event-injection'

// PageView example
facebook('691662573424231', {
    track: 'PageView'
});

// Lead example
facebook('691662573424231', {
    track: 'Lead'
});

// Custom Event
facebook('607791573487795', {
    track: 'PageView',
    trackCustom: 'ShareDiscount'
});
0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago