-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfbpixl-script.js
182 lines (182 loc) · 5.38 KB
/
fbpixl-script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
var _0x5b0c = [
'track',
'PageView',
'matches',
'.cart__checkout,\x20[name=\x22checkout\x22],\x20a[href=\x22/checkout\x22]',
'InitiateCheckout',
'click',
'target',
'.zpa-add-to-cart-btn,\x20[data-zp-add-to-cart]',
'apply',
'return\x20(function()\x20',
'console',
'log',
'debug',
'info',
'exception',
'trace',
'warn',
'error',
'fbq',
'callMethod',
'queue',
'push',
'_fbq',
'loaded',
'version',
'createElement',
'parentNode',
'insertBefore',
'script',
'location',
'href',
'addEventListener',
'random',
'includes',
'/thank_you',
'percentage',
'pixel_id',
'set',
'autoConfig',
'true',
];
(function(_0x18e75c, _0x534ecb) {
var _0x557984 = function(_0x1696ae) {
while (--_0x1696ae) {
_0x18e75c['push'](_0x18e75c['shift']());
}
};
_0x557984(++_0x534ecb);
})(_0x5b0c, 0x1c0);
var _0x5f00 = function(_0x2cf921, _0x49b1b4) {
_0x2cf921 = _0x2cf921 - 0x0;
var _0x87d9fb = _0x5b0c[_0x2cf921];
return _0x87d9fb;
};
!(function(
_0x3f8e88,
_0x2266ec,
_0x2c0385,
_0x511072,
_0x3fcf6b,
_0x3111e8,
_0x111461
) {
var _0x3ec89a = (function() {
var _0x3d84d7 = !![];
return function(_0x146d5f, _0x27df26) {
var _0x3a65d6 = _0x3d84d7
? function() {
if (_0x27df26) {
var _0x5098dc = _0x27df26[_0x5f00('0x0')](
_0x146d5f,
arguments
);
_0x27df26 = null;
return _0x5098dc;
}
}
: function() {};
_0x3d84d7 = ![];
return _0x3a65d6;
};
})();
var _0x53244d = _0x3ec89a(this, function() {
var _0xb5a2ea = function() {};
var _0x4fe7d9;
try {
var _0x26ecbf = Function(
_0x5f00('0x1') +
'{}.constructor(\x22return\x20this\x22)(\x20)' +
');'
);
_0x4fe7d9 = _0x26ecbf();
} catch (_0x328049) {
_0x4fe7d9 = window;
}
if (!_0x4fe7d9[_0x5f00('0x2')]) {
_0x4fe7d9[_0x5f00('0x2')] = (function(_0xb5a2ea) {
var _0x5ef231 = {};
_0x5ef231[_0x5f00('0x3')] = _0xb5a2ea;
_0x5ef231['warn'] = _0xb5a2ea;
_0x5ef231[_0x5f00('0x4')] = _0xb5a2ea;
_0x5ef231[_0x5f00('0x5')] = _0xb5a2ea;
_0x5ef231['error'] = _0xb5a2ea;
_0x5ef231[_0x5f00('0x6')] = _0xb5a2ea;
_0x5ef231[_0x5f00('0x7')] = _0xb5a2ea;
return _0x5ef231;
})(_0xb5a2ea);
} else {
_0x4fe7d9[_0x5f00('0x2')][_0x5f00('0x3')] = _0xb5a2ea;
_0x4fe7d9[_0x5f00('0x2')][_0x5f00('0x8')] = _0xb5a2ea;
_0x4fe7d9[_0x5f00('0x2')][_0x5f00('0x4')] = _0xb5a2ea;
_0x4fe7d9[_0x5f00('0x2')]['info'] = _0xb5a2ea;
_0x4fe7d9[_0x5f00('0x2')][_0x5f00('0x9')] = _0xb5a2ea;
_0x4fe7d9['console']['exception'] = _0xb5a2ea;
_0x4fe7d9['console'][_0x5f00('0x7')] = _0xb5a2ea;
}
});
_0x53244d();
if (_0x3f8e88['fbq']) return;
_0x3fcf6b = _0x3f8e88[_0x5f00('0xa')] = function() {
_0x3fcf6b[_0x5f00('0xb')]
? _0x3fcf6b[_0x5f00('0xb')][_0x5f00('0x0')](_0x3fcf6b, arguments)
: _0x3fcf6b[_0x5f00('0xc')][_0x5f00('0xd')](arguments);
};
if (!_0x3f8e88[_0x5f00('0xe')]) _0x3f8e88[_0x5f00('0xe')] = _0x3fcf6b;
_0x3fcf6b[_0x5f00('0xd')] = _0x3fcf6b;
_0x3fcf6b[_0x5f00('0xf')] = !0x0;
_0x3fcf6b[_0x5f00('0x10')] = '2.0';
_0x3fcf6b['queue'] = [];
_0x3111e8 = _0x2266ec[_0x5f00('0x11')](_0x2c0385);
_0x3111e8['async'] = !0x0;
_0x3111e8['src'] = _0x511072;
_0x111461 = _0x2266ec['getElementsByTagName'](_0x2c0385)[0x0];
_0x111461[_0x5f00('0x12')][_0x5f00('0x13')](_0x3111e8, _0x111461);
})(
window,
document,
_0x5f00('0x14'),
'https://connect.facebook.net/en_US/fbevents.js'
);
var currentUrl = window[_0x5f00('0x15')][_0x5f00('0x16')];
document[_0x5f00('0x17')]('DOMContentLoaded', function(_0x49d6f0) {
for (p of pixels || []) {
const _0xcbd834 = Math['floor'](Math[_0x5f00('0x18')]() * 0x65);
if (
!currentUrl[_0x5f00('0x19')](_0x5f00('0x1a')) ||
_0xcbd834 < p[_0x5f00('0x1b')]
) {
fbq('init', p[_0x5f00('0x1c')]);
fbq(
_0x5f00('0x1d'),
_0x5f00('0x1e'),
_0x5f00('0x1f'),
p[_0x5f00('0x1c')]
);
fbq(_0x5f00('0x20'), _0x5f00('0x21'));
}
}
document[_0x5f00('0x17')](
'click',
function(_0x49d6f0) {
if (_0x49d6f0['target'][_0x5f00('0x22')](_0x5f00('0x23'))) {
setTimeout(() => {
fbq(_0x5f00('0x20'), _0x5f00('0x24'));
});
}
},
![]
);
document['addEventListener'](
_0x5f00('0x25'),
function(_0x49d6f0) {
if (_0x49d6f0[_0x5f00('0x26')][_0x5f00('0x22')](_0x5f00('0x27'))) {
setTimeout(() => {
fbq(_0x5f00('0x20'), 'AddToCart');
});
}
},
![]
);
});