biffbangpow/silverstripe-facebook-pixel

Facebook Pixel Integration for Silverstripe

Installs: 62

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.0.0 2021-06-15 08:42 UTC

This package is auto-updated.

Last update: 2024-10-15 16:33:52 UTC


README

This adds easy controls for adding the embed code for the Facebook Pixel.

Setup

Install with Composer

composer require biffbangpow/silverstripe-facebook-pixel

Add the Facebook Pixel template to your main Page.ss template just before the closing <head> tag

<% include FacebookPixel %>

Usage

In SiteConfig there will be a "FacebookPixelID" field where the numeric ID for your Facebook Pixel can be entered, this is a 15-digit number.

If a Facebook Pixel ID has been entered in Site Config then the Facebook Pixel embed code will be outputted on every page.

Each page also has the option to select an event from the list here "https://www.facebook.com/business/help/402791146561655".

If an event has been selected then the code to track the event will also be outputted on the page.

Todo

Implement remaining events