Skip to content

Commit

Permalink
Updated Facebook Pixel settings
Browse files Browse the repository at this point in the history
  • Loading branch information
arnabp92 committed May 6, 2020
1 parent 069ea8d commit f480af1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions integrations/FbPixel/browser.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ScriptLoader } from "../ScriptLoader";
import logger from "../../utils/logUtil";
import is from "is";
import each from "@ndhoule/each";
import each from "./node_modules/@ndhoule/each";

class FbPixel {
class FBPixel {
constructor(config) {
this.blacklistPiiProperties = config.blacklistPiiProperties;
this.categoryToContent = config.categoryToContent;
Expand All @@ -20,7 +20,7 @@ class FbPixel {
}

init() {
logger.debug("===in init FbPixel===");
logger.debug("===in init FBPixel===");
window._fbq = function () {
if (window.fbq.callMethod) {
window.fbq.callMethod.apply(window.fbq, arguments);
Expand All @@ -45,12 +45,12 @@ class FbPixel {
}

isLoaded() {
logger.debug("in FbPixel isLoaded");
logger.debug("in FBPixel isLoaded");
return !!(window.fbq && window.fbq.callMethod);
}

isReady() {
logger.debug("in FbPixel isReady");
logger.debug("in FBPixel isReady");
return !!(window.fbq && window.fbq.callMethod);
}

Expand Down Expand Up @@ -593,4 +593,4 @@ class FbPixel {
}
}

export { FbPixel };
export { FBPixel };
4 changes: 2 additions & 2 deletions integrations/FbPixel/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { FbPixel } from "./browser";
import { FBPixel } from "./browser";

export default FbPixel;
export default FBPixel;
4 changes: 2 additions & 2 deletions integrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as Kissmetrics from "./Kissmetrics";
import * as CustomerIO from "./CustomerIO";
import * as Chartbeat from "./Chartbeat";
import * as Comscore from "./Comscore";
import * as FbPixel from "./FbPixel";
import * as FBPixel from "./FBPixel";
import * as Lotame from "./Lotame";

let integrations = {
Expand All @@ -28,7 +28,7 @@ let integrations = {
CUSTOMERIO: CustomerIO.default,
CHARTBEAT: Chartbeat.default,
COMSCORE: Comscore.default,
FB_PIXEL: FbPixel.default,
FACEBOOK_PIXEL: FBPixel.default,
LOTAME: Lotame.default
};

Expand Down

0 comments on commit f480af1

Please sign in to comment.