Skip to content

Commit c123dc9

Browse files
authored
[FB Pixel] Explicitly disable LDU in FB Pixel when LDU setting is false (#498)
1 parent 17e7c0c commit c123dc9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

integrations/facebook-pixel/HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2.11.2/ 2020-07-28
2+
==================
3+
4+
* Explicitly not enable Limited Data Use (LDU) mode in the FB Pixel SDK when the Limited Data Use Segment setting is disabled.
5+
16
2.11.1/ 2020-07-22
27
==================
38

integrations/facebook-pixel/lib/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ FacebookPixel.prototype.initialize = function() {
107107
this.validateAndSetDataProcessing(
108108
this.options.dataProcessingOptions || [['LDU'], 0, 0]
109109
);
110+
} else {
111+
// explicitly not enable Limited Data Use (LDU) mode
112+
window.fbq('dataProcessingOptions', []);
110113
}
111114
if (this.options.initWithExistingTraits) {
112115
var traits = this.formatTraits(this.analytics);

integrations/facebook-pixel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@segment/analytics.js-integration-facebook-pixel",
33
"description": "The Facebook Pixel analytics.js integration.",
4-
"version": "2.11.1",
4+
"version": "2.11.2",
55
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",

0 commit comments

Comments
 (0)