Skip to content

Commit

Permalink
Merge pull request #77 from rudderlabs/fb_pixel_fix
Browse files Browse the repository at this point in the history
changed for eventsToEvents
  • Loading branch information
arnabp92 authored Jun 8, 2020
2 parents d3a83cc + 744b0cb commit 9c357ea
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 29 deletions.
9 changes: 1 addition & 8 deletions dist/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7793,15 +7793,8 @@ var rudderanalytics = (function (exports) {
var standardTo;
var legacyTo;
standardTo = standard.reduce(function (filtered, standard) {
var key;
Object.keys(standard).forEach(function (k) {
if (k !== "from") {
key = k;
}
});

if (standard.from === event) {
filtered.push(key);
filtered.push(standard.to);
}

return filtered;
Expand Down
4 changes: 2 additions & 2 deletions dist/rudder-analytics-map.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rudder-analytics.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rudder-analytics.min.js.map

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions dist/rudder-sdk-js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7796,15 +7796,8 @@
var standardTo;
var legacyTo;
standardTo = standard.reduce(function (filtered, standard) {
var key;
Object.keys(standard).forEach(function (k) {
if (k !== "from") {
key = k;
}
});

if (standard.from === event) {
filtered.push(key);
filtered.push(standard.to);
}

return filtered;
Expand Down
8 changes: 1 addition & 7 deletions integrations/FbPixel/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,8 @@ class FBPixel {
var legacyTo;

standardTo = standard.reduce((filtered, standard) => {
let key;
Object.keys(standard).forEach((k) => {
if (k !== "from") {
key = k;
}
});
if (standard.from === event) {
filtered.push(key);
filtered.push(standard.to);
}
return filtered;
}, []);
Expand Down
4 changes: 2 additions & 2 deletions tests/html/script-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
}

rudderanalytics.load(
"1bZb2lMHmBGSPWNiMgqHUKPq56l",
"1cuY42ftbhV4ufcEMc0UZjlkLwS",
"http://localhost:8050",
{
logLevel: "DEBUG",
configUrl: "http://localhost:8050/sourceConfig"

}
);

Expand Down

0 comments on commit 9c357ea

Please sign in to comment.