factorial-pixel 0.7.8 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/app.js +4 -2
- package/coverage/clover.xml +21 -21
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/index.js.html +1 -1
- package/coverage/lcov-report/pixelUrl.js.html +4 -7
- package/coverage/lcov-report/requestParameters.js.html +13 -7
- package/coverage/lcov.info +31 -31
- package/package.json +1 -1
package/build/app.js
CHANGED
|
@@ -118,12 +118,12 @@ exports.default = function (document) {
|
|
|
118
118
|
var _requestParameters = (0, _requestParameters3.default)(document),
|
|
119
119
|
language = _requestParameters.language,
|
|
120
120
|
landingPage = _requestParameters.landingPage,
|
|
121
|
+
mc = _requestParameters.mc,
|
|
121
122
|
gclid = _requestParameters.gclid,
|
|
122
123
|
aclid = _requestParameters.aclid,
|
|
123
124
|
fbclid = _requestParameters.fbclid;
|
|
124
125
|
|
|
125
|
-
var
|
|
126
|
-
var attributes = ['mc=' + (mc ? mc[1] : ''), 'referer=' + encodeURI(document.referrer), 'language=' + language, 'landing_page=' + landingPage];
|
|
126
|
+
var attributes = ['mc=' + (mc || ''), 'referer=' + encodeURI(document.referrer), 'language=' + language, 'landing_page=' + landingPage];
|
|
127
127
|
|
|
128
128
|
if (gclid) {
|
|
129
129
|
attributes.push('gclid=' + gclid);
|
|
@@ -175,6 +175,7 @@ function requestParameters(document) {
|
|
|
175
175
|
var search = document.location.search.substring(1);
|
|
176
176
|
var landing = encodeURI(path);
|
|
177
177
|
var locale = document.querySelector('html').lang.split('-')[0];
|
|
178
|
+
var mc = findPropertyInParams(search, 'mc');
|
|
178
179
|
var gclid = findPropertyInParams(search, 'gclid');
|
|
179
180
|
var aclid = findPropertyInParams(search, 'aclid');
|
|
180
181
|
var fbclid = findPropertyInParams(search, 'fbclid');
|
|
@@ -182,6 +183,7 @@ function requestParameters(document) {
|
|
|
182
183
|
return {
|
|
183
184
|
language: locale,
|
|
184
185
|
landingPage: landing,
|
|
186
|
+
mc: mc,
|
|
185
187
|
gclid: gclid,
|
|
186
188
|
aclid: aclid,
|
|
187
189
|
fbclid: fbclid
|
package/coverage/clover.xml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1742571471694" clover="3.2.0">
|
|
3
|
+
<project timestamp="1742571471694" name="All files">
|
|
4
4
|
<metrics statements="33" coveredstatements="23" conditionals="17" coveredconditionals="8" methods="5" coveredmethods="4" elements="55" coveredelements="35" complexity="0" loc="33" ncloc="33" packages="1" files="3" classes="3">
|
|
5
|
-
<file name="index.js" path="/Users/
|
|
5
|
+
<file name="index.js" path="/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/index.js">
|
|
6
6
|
<metrics statements="10" coveredstatements="0" conditionals="8" coveredconditionals="0" methods="1" coveredmethods="0"/>
|
|
7
7
|
<line num="1" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
8
8
|
<line num="9" count="0" type="stmt"/>
|
|
@@ -15,26 +15,25 @@
|
|
|
15
15
|
<line num="17" count="0" type="stmt"/>
|
|
16
16
|
<line num="18" count="0" type="stmt"/>
|
|
17
17
|
</file>
|
|
18
|
-
<file name="pixelUrl.js" path="/Users/
|
|
19
|
-
<metrics statements="
|
|
18
|
+
<file name="pixelUrl.js" path="/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/pixelUrl.js">
|
|
19
|
+
<metrics statements="9" coveredstatements="9" conditionals="8" coveredconditionals="8" methods="1" coveredmethods="1"/>
|
|
20
20
|
<line num="4" count="5" type="stmt"/>
|
|
21
21
|
<line num="7" count="5" type="stmt"/>
|
|
22
|
-
<line num="
|
|
23
|
-
<line num="15" count="
|
|
24
|
-
<line num="
|
|
25
|
-
<line num="18" count="
|
|
26
|
-
<line num="
|
|
27
|
-
<line num="21" count="
|
|
28
|
-
<line num="
|
|
29
|
-
<line num="25" count="5" type="stmt"/>
|
|
22
|
+
<line num="14" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
23
|
+
<line num="15" count="1" type="stmt"/>
|
|
24
|
+
<line num="17" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
25
|
+
<line num="18" count="1" type="stmt"/>
|
|
26
|
+
<line num="20" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
27
|
+
<line num="21" count="1" type="stmt"/>
|
|
28
|
+
<line num="24" count="5" type="stmt"/>
|
|
30
29
|
</file>
|
|
31
|
-
<file name="requestParameters.js" path="/Users/
|
|
32
|
-
<metrics statements="
|
|
33
|
-
<line num="2" count="
|
|
34
|
-
<line num="4" count="
|
|
35
|
-
<line num="5" count="
|
|
36
|
-
<line num="7" count="
|
|
37
|
-
<line num="10" count="
|
|
30
|
+
<file name="requestParameters.js" path="/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/requestParameters.js">
|
|
31
|
+
<metrics statements="14" coveredstatements="14" conditionals="1" coveredconditionals="0" methods="3" coveredmethods="3"/>
|
|
32
|
+
<line num="2" count="36" type="stmt"/>
|
|
33
|
+
<line num="4" count="36" type="stmt"/>
|
|
34
|
+
<line num="5" count="36" type="stmt"/>
|
|
35
|
+
<line num="7" count="36" type="stmt"/>
|
|
36
|
+
<line num="10" count="36" type="stmt"/>
|
|
38
37
|
<line num="14" count="9" type="stmt"/>
|
|
39
38
|
<line num="15" count="9" type="stmt"/>
|
|
40
39
|
<line num="16" count="9" type="stmt"/>
|
|
@@ -42,7 +41,8 @@
|
|
|
42
41
|
<line num="18" count="9" type="stmt"/>
|
|
43
42
|
<line num="19" count="9" type="stmt"/>
|
|
44
43
|
<line num="20" count="9" type="stmt"/>
|
|
45
|
-
<line num="
|
|
44
|
+
<line num="21" count="9" type="stmt"/>
|
|
45
|
+
<line num="23" count="9" type="stmt"/>
|
|
46
46
|
</file>
|
|
47
47
|
</metrics>
|
|
48
48
|
</project>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{"/Users/
|
|
2
|
-
,"/Users/
|
|
3
|
-
,"/Users/
|
|
1
|
+
{"/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/index.js": {"path":"/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/index.js","statementMap":{"0":{"start":{"line":1,"column":29},"end":{"line":1,"column":50}},"1":{"start":{"line":1,"column":68},"end":{"line":1,"column":101}},"2":{"start":{"line":1,"column":140},"end":{"line":1,"column":194}},"3":{"start":{"line":9,"column":13},"end":{"line":9,"column":55}},"4":{"start":{"line":10,"column":19},"end":{"line":10,"column":69}},"5":{"start":{"line":11,"column":13},"end":{"line":11,"column":58}},"6":{"start":{"line":13,"column":10},"end":{"line":13,"column":39}},"7":{"start":{"line":14,"column":0},"end":{"line":14,"column":58}},"8":{"start":{"line":15,"column":0},"end":{"line":15,"column":14}},"9":{"start":{"line":16,"column":0},"end":{"line":16,"column":15}},"10":{"start":{"line":17,"column":0},"end":{"line":17,"column":28}},"11":{"start":{"line":18,"column":0},"end":{"line":18,"column":31}}},"fnMap":{"0":{"name":"_interopRequireDefault","decl":{"start":{"line":1,"column":111},"end":{"line":1,"column":133}},"loc":{"start":{"line":1,"column":139},"end":{"line":1,"column":195}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":147},"end":{"line":1,"column":193}},"type":"cond-expr","locations":[{"start":{"line":1,"column":171},"end":{"line":1,"column":174}},{"start":{"line":1,"column":177},"end":{"line":1,"column":193}}],"line":1},"1":{"loc":{"start":{"line":1,"column":147},"end":{"line":1,"column":168}},"type":"binary-expr","locations":[{"start":{"line":1,"column":147},"end":{"line":1,"column":150}},{"start":{"line":1,"column":154},"end":{"line":1,"column":168}}],"line":1},"2":{"loc":{"start":{"line":10,"column":19},"end":{"line":10,"column":69}},"type":"cond-expr","locations":[{"start":{"line":10,"column":28},"end":{"line":10,"column":62}},{"start":{"line":10,"column":65},"end":{"line":10,"column":69}}],"line":10},"3":{"loc":{"start":{"line":11,"column":13},"end":{"line":11,"column":58}},"type":"binary-expr","locations":[{"start":{"line":11,"column":13},"end":{"line":11,"column":25}},{"start":{"line":11,"column":29},"end":{"line":11,"column":58}}],"line":11}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"f":{"0":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0]}}
|
|
2
|
+
,"/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/pixelUrl.js": {"path":"/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/pixelUrl.js","statementMap":{"0":{"start":{"line":4,"column":62},"end":{"line":6,"column":3}},"1":{"start":{"line":7,"column":21},"end":{"line":12,"column":3}},"2":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":37}},"4":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":37}},"6":{"start":{"line":20,"column":2},"end":{"line":22,"column":3}},"7":{"start":{"line":21,"column":4},"end":{"line":21,"column":39}},"8":{"start":{"line":24,"column":2},"end":{"line":24,"column":50}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":15},"end":{"line":3,"column":16}},"loc":{"start":{"line":3,"column":27},"end":{"line":25,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":10},"end":{"line":8,"column":18}},"type":"binary-expr","locations":[{"start":{"line":8,"column":10},"end":{"line":8,"column":12}},{"start":{"line":8,"column":16},"end":{"line":8,"column":18}}],"line":8},"1":{"loc":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"type":"if","locations":[{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},{"start":{"line":14,"column":2},"end":{"line":16,"column":3}}],"line":14},"2":{"loc":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":2},"end":{"line":19,"column":3}}],"line":17},"3":{"loc":{"start":{"line":20,"column":2},"end":{"line":22,"column":3}},"type":"if","locations":[{"start":{"line":20,"column":2},"end":{"line":22,"column":3}},{"start":{"line":20,"column":2},"end":{"line":22,"column":3}}],"line":20}},"s":{"0":5,"1":5,"2":5,"3":1,"4":5,"5":1,"6":5,"7":1,"8":5},"f":{"0":5},"b":{"0":[5,4],"1":[1,4],"2":[1,4],"3":[1,4]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"431f708a3117c179b747c0079aa9031af787f4e2"}
|
|
3
|
+
,"/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/requestParameters.js": {"path":"/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/requestParameters.js","statementMap":{"0":{"start":{"line":2,"column":14},"end":{"line":2,"column":16}},"1":{"start":{"line":4,"column":2},"end":{"line":8,"column":4}},"2":{"start":{"line":5,"column":25},"end":{"line":5,"column":41}},"3":{"start":{"line":7,"column":4},"end":{"line":7,"column":20}},"4":{"start":{"line":10,"column":2},"end":{"line":10,"column":22}},"5":{"start":{"line":14,"column":15},"end":{"line":14,"column":68}},"6":{"start":{"line":15,"column":17},"end":{"line":15,"column":54}},"7":{"start":{"line":16,"column":18},"end":{"line":16,"column":33}},"8":{"start":{"line":17,"column":17},"end":{"line":17,"column":66}},"9":{"start":{"line":18,"column":13},"end":{"line":18,"column":47}},"10":{"start":{"line":19,"column":16},"end":{"line":19,"column":53}},"11":{"start":{"line":20,"column":16},"end":{"line":20,"column":53}},"12":{"start":{"line":21,"column":17},"end":{"line":21,"column":55}},"13":{"start":{"line":23,"column":2},"end":{"line":30,"column":3}}},"fnMap":{"0":{"name":"findPropertyInParams","decl":{"start":{"line":1,"column":9},"end":{"line":1,"column":29}},"loc":{"start":{"line":1,"column":54},"end":{"line":11,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":28},"end":{"line":4,"column":29}},"loc":{"start":{"line":4,"column":37},"end":{"line":8,"column":3}},"line":4},"2":{"name":"requestParameters","decl":{"start":{"line":13,"column":24},"end":{"line":13,"column":41}},"loc":{"start":{"line":13,"column":53},"end":{"line":31,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":42}},"type":"default-arg","locations":[{"start":{"line":1,"column":40},"end":{"line":1,"column":42}}],"line":1}},"s":{"0":36,"1":36,"2":36,"3":36,"4":36,"5":9,"6":9,"7":9,"8":9,"9":9,"10":9,"11":9,"12":9,"13":9},"f":{"0":36,"1":36,"2":9},"b":{"0":[0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"e870f71eba13519a427b56e88ff2c9247c1863ab"}
|
|
4
4
|
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var jumpToCode = (function init() {
|
|
3
|
+
// Classes of code we would like to highlight in the file view
|
|
4
|
+
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
+
|
|
6
|
+
// Elements to highlight in the file listing view
|
|
7
|
+
var fileListingElements = ['td.pct.low'];
|
|
8
|
+
|
|
9
|
+
// We don't want to select elements that are direct descendants of another match
|
|
10
|
+
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
+
|
|
12
|
+
// Selecter that finds elements on the page to which we can jump
|
|
13
|
+
var selector =
|
|
14
|
+
fileListingElements.join(', ') +
|
|
15
|
+
', ' +
|
|
16
|
+
notSelector +
|
|
17
|
+
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
+
|
|
19
|
+
// The NodeList of matching elements
|
|
20
|
+
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
+
|
|
22
|
+
var currentIndex;
|
|
23
|
+
|
|
24
|
+
function toggleClass(index) {
|
|
25
|
+
missingCoverageElements
|
|
26
|
+
.item(currentIndex)
|
|
27
|
+
.classList.remove('highlighted');
|
|
28
|
+
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function makeCurrent(index) {
|
|
32
|
+
toggleClass(index);
|
|
33
|
+
currentIndex = index;
|
|
34
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
+
behavior: 'smooth',
|
|
36
|
+
block: 'center',
|
|
37
|
+
inline: 'center'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function goToPrevious() {
|
|
42
|
+
var nextIndex = 0;
|
|
43
|
+
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
+
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
+
} else if (missingCoverageElements.length > 1) {
|
|
46
|
+
nextIndex = currentIndex - 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
makeCurrent(nextIndex);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function goToNext() {
|
|
53
|
+
var nextIndex = 0;
|
|
54
|
+
|
|
55
|
+
if (
|
|
56
|
+
typeof currentIndex === 'number' &&
|
|
57
|
+
currentIndex < missingCoverageElements.length - 1
|
|
58
|
+
) {
|
|
59
|
+
nextIndex = currentIndex + 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
makeCurrent(nextIndex);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return function jump(event) {
|
|
66
|
+
if (
|
|
67
|
+
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
+
document.activeElement != null
|
|
69
|
+
) {
|
|
70
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
switch (event.which) {
|
|
75
|
+
case 78: // n
|
|
76
|
+
case 74: // j
|
|
77
|
+
goToNext();
|
|
78
|
+
break;
|
|
79
|
+
case 66: // b
|
|
80
|
+
case 75: // k
|
|
81
|
+
case 80: // p
|
|
82
|
+
goToPrevious();
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
})();
|
|
87
|
+
window.addEventListener('keydown', jumpToCode);
|
|
Binary file
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
</div><!-- /wrapper -->
|
|
84
84
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
85
85
|
Code coverage
|
|
86
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
86
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri Mar 21 2025 16:37:51 GMT+0100 (Central European Standard Time)
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
89
89
|
<script src="prettify.js"></script>
|
|
@@ -83,7 +83,7 @@ const img <span class="cstat-no" title="statement not covered" >= document.creat
|
|
|
83
83
|
</div><!-- /wrapper -->
|
|
84
84
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
85
85
|
Code coverage
|
|
86
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
86
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri Mar 21 2025 16:37:51 GMT+0100 (Central European Standard Time)
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
89
89
|
<script src="prettify.js"></script>
|
|
@@ -48,15 +48,13 @@
|
|
|
48
48
|
23
|
|
49
49
|
24
|
|
50
50
|
25
|
|
51
|
-
26
|
|
52
|
-
27</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
51
|
+
26</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
53
52
|
<span class="cline-any cline-neutral"> </span>
|
|
54
53
|
<span class="cline-any cline-neutral"> </span>
|
|
55
54
|
<span class="cline-any cline-yes">5x</span>
|
|
56
55
|
<span class="cline-any cline-neutral"> </span>
|
|
57
56
|
<span class="cline-any cline-neutral"> </span>
|
|
58
57
|
<span class="cline-any cline-yes">5x</span>
|
|
59
|
-
<span class="cline-any cline-yes">5x</span>
|
|
60
58
|
<span class="cline-any cline-neutral"> </span>
|
|
61
59
|
<span class="cline-any cline-neutral"> </span>
|
|
62
60
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -78,12 +76,11 @@
|
|
|
78
76
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import requestParameters from './requestParameters'
|
|
79
77
|
|
|
80
78
|
export default document => {
|
|
81
|
-
const { language, landingPage, gclid, aclid, fbclid } = requestParameters(
|
|
79
|
+
const { language, landingPage, mc, gclid, aclid, fbclid } = requestParameters(
|
|
82
80
|
document
|
|
83
81
|
)
|
|
84
|
-
const mc = document.location.href.match(/mc=(.*)/)
|
|
85
82
|
const attributes = [
|
|
86
|
-
`mc=${mc
|
|
83
|
+
`mc=${mc || ''}`,
|
|
87
84
|
`referer=${encodeURI(document.referrer)}`,
|
|
88
85
|
`language=${language}`,
|
|
89
86
|
`landing_page=${landingPage}`
|
|
@@ -107,7 +104,7 @@ export default document => {
|
|
|
107
104
|
</div><!-- /wrapper -->
|
|
108
105
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
109
106
|
Code coverage
|
|
110
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
107
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri Mar 21 2025 16:37:51 GMT+0100 (Central European Standard Time)
|
|
111
108
|
</div>
|
|
112
109
|
</div>
|
|
113
110
|
<script src="prettify.js"></script>
|
|
@@ -52,16 +52,18 @@
|
|
|
52
52
|
27
|
|
53
53
|
28
|
|
54
54
|
29
|
|
55
|
-
30
|
|
56
|
-
|
|
55
|
+
30
|
|
56
|
+
31
|
|
57
|
+
32</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
58
|
+
<span class="cline-any cline-yes">36x</span>
|
|
57
59
|
<span class="cline-any cline-neutral"> </span>
|
|
58
|
-
<span class="cline-any cline-yes">
|
|
59
|
-
<span class="cline-any cline-yes">
|
|
60
|
+
<span class="cline-any cline-yes">36x</span>
|
|
61
|
+
<span class="cline-any cline-yes">36x</span>
|
|
60
62
|
<span class="cline-any cline-neutral"> </span>
|
|
61
|
-
<span class="cline-any cline-yes">
|
|
63
|
+
<span class="cline-any cline-yes">36x</span>
|
|
62
64
|
<span class="cline-any cline-neutral"> </span>
|
|
63
65
|
<span class="cline-any cline-neutral"> </span>
|
|
64
|
-
<span class="cline-any cline-yes">
|
|
66
|
+
<span class="cline-any cline-yes">36x</span>
|
|
65
67
|
<span class="cline-any cline-neutral"> </span>
|
|
66
68
|
<span class="cline-any cline-neutral"> </span>
|
|
67
69
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -72,6 +74,7 @@
|
|
|
72
74
|
<span class="cline-any cline-yes">9x</span>
|
|
73
75
|
<span class="cline-any cline-yes">9x</span>
|
|
74
76
|
<span class="cline-any cline-yes">9x</span>
|
|
77
|
+
<span class="cline-any cline-yes">9x</span>
|
|
75
78
|
<span class="cline-any cline-neutral"> </span>
|
|
76
79
|
<span class="cline-any cline-yes">9x</span>
|
|
77
80
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -81,6 +84,7 @@
|
|
|
81
84
|
<span class="cline-any cline-neutral"> </span>
|
|
82
85
|
<span class="cline-any cline-neutral"> </span>
|
|
83
86
|
<span class="cline-any cline-neutral"> </span>
|
|
87
|
+
<span class="cline-any cline-neutral"> </span>
|
|
84
88
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">function findPropertyInParams (params = <span class="branch-0 cbranch-no" title="branch not covered" >'',</span> property) {
|
|
85
89
|
const acc = {}
|
|
86
90
|
|
|
@@ -98,6 +102,7 @@ export default function requestParameters (document) {
|
|
|
98
102
|
const search = document.location.search.substring(1)
|
|
99
103
|
const landing = encodeURI(path)
|
|
100
104
|
const locale = document.querySelector('html').lang.split('-')[0]
|
|
105
|
+
const mc = findPropertyInParams(search, 'mc')
|
|
101
106
|
const gclid = findPropertyInParams(search, 'gclid')
|
|
102
107
|
const aclid = findPropertyInParams(search, 'aclid')
|
|
103
108
|
const fbclid = findPropertyInParams(search, 'fbclid')
|
|
@@ -105,6 +110,7 @@ export default function requestParameters (document) {
|
|
|
105
110
|
return {
|
|
106
111
|
language: locale,
|
|
107
112
|
landingPage: landing,
|
|
113
|
+
mc,
|
|
108
114
|
gclid,
|
|
109
115
|
aclid,
|
|
110
116
|
fbclid
|
|
@@ -116,7 +122,7 @@ export default function requestParameters (document) {
|
|
|
116
122
|
</div><!-- /wrapper -->
|
|
117
123
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
118
124
|
Code coverage
|
|
119
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
125
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri Mar 21 2025 16:37:51 GMT+0100 (Central European Standard Time)
|
|
120
126
|
</div>
|
|
121
127
|
</div>
|
|
122
128
|
<script src="prettify.js"></script>
|
package/coverage/lcov.info
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
TN:
|
|
2
|
-
SF:/Users/
|
|
2
|
+
SF:/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/index.js
|
|
3
3
|
FN:1,_interopRequireDefault
|
|
4
4
|
FNF:1
|
|
5
5
|
FNH:0
|
|
@@ -28,49 +28,48 @@ BRF:8
|
|
|
28
28
|
BRH:0
|
|
29
29
|
end_of_record
|
|
30
30
|
TN:
|
|
31
|
-
SF:/Users/
|
|
31
|
+
SF:/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/pixelUrl.js
|
|
32
32
|
FN:3,(anonymous_0)
|
|
33
33
|
FNF:1
|
|
34
34
|
FNH:1
|
|
35
35
|
FNDA:5,(anonymous_0)
|
|
36
36
|
DA:4,5
|
|
37
37
|
DA:7,5
|
|
38
|
-
DA:
|
|
39
|
-
DA:15,
|
|
40
|
-
DA:
|
|
41
|
-
DA:18,
|
|
42
|
-
DA:
|
|
43
|
-
DA:21,
|
|
44
|
-
DA:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
BRDA:
|
|
49
|
-
BRDA:
|
|
50
|
-
BRDA:
|
|
51
|
-
BRDA:
|
|
52
|
-
BRDA:
|
|
53
|
-
BRDA:
|
|
54
|
-
BRDA:
|
|
55
|
-
BRDA:21,3,1,4
|
|
38
|
+
DA:14,5
|
|
39
|
+
DA:15,1
|
|
40
|
+
DA:17,5
|
|
41
|
+
DA:18,1
|
|
42
|
+
DA:20,5
|
|
43
|
+
DA:21,1
|
|
44
|
+
DA:24,5
|
|
45
|
+
LF:9
|
|
46
|
+
LH:9
|
|
47
|
+
BRDA:8,0,0,5
|
|
48
|
+
BRDA:8,0,1,4
|
|
49
|
+
BRDA:14,1,0,1
|
|
50
|
+
BRDA:14,1,1,4
|
|
51
|
+
BRDA:17,2,0,1
|
|
52
|
+
BRDA:17,2,1,4
|
|
53
|
+
BRDA:20,3,0,1
|
|
54
|
+
BRDA:20,3,1,4
|
|
56
55
|
BRF:8
|
|
57
56
|
BRH:8
|
|
58
57
|
end_of_record
|
|
59
58
|
TN:
|
|
60
|
-
SF:/Users/
|
|
59
|
+
SF:/Users/marc-penche-factorial/Documents/GitHub/factorial-pixel/src/requestParameters.js
|
|
61
60
|
FN:1,findPropertyInParams
|
|
62
61
|
FN:4,(anonymous_1)
|
|
63
62
|
FN:13,requestParameters
|
|
64
63
|
FNF:3
|
|
65
64
|
FNH:3
|
|
66
|
-
FNDA:
|
|
67
|
-
FNDA:
|
|
65
|
+
FNDA:36,findPropertyInParams
|
|
66
|
+
FNDA:36,(anonymous_1)
|
|
68
67
|
FNDA:9,requestParameters
|
|
69
|
-
DA:2,
|
|
70
|
-
DA:4,
|
|
71
|
-
DA:5,
|
|
72
|
-
DA:7,
|
|
73
|
-
DA:10,
|
|
68
|
+
DA:2,36
|
|
69
|
+
DA:4,36
|
|
70
|
+
DA:5,36
|
|
71
|
+
DA:7,36
|
|
72
|
+
DA:10,36
|
|
74
73
|
DA:14,9
|
|
75
74
|
DA:15,9
|
|
76
75
|
DA:16,9
|
|
@@ -78,9 +77,10 @@ DA:17,9
|
|
|
78
77
|
DA:18,9
|
|
79
78
|
DA:19,9
|
|
80
79
|
DA:20,9
|
|
81
|
-
DA:
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
DA:21,9
|
|
81
|
+
DA:23,9
|
|
82
|
+
LF:14
|
|
83
|
+
LH:14
|
|
84
84
|
BRDA:1,0,0,0
|
|
85
85
|
BRF:1
|
|
86
86
|
BRH:0
|