Skip to content

Commit b3a7624

Browse files
committed
Add LogRocket script and minor improvements
1 parent 438abc1 commit b3a7624

4 files changed

Lines changed: 335 additions & 216 deletions

File tree

index.html

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
src="https://kit.fontawesome.com/495a52ab3e.js"
3232
></script>
3333
<script type="text/javascript" src="assets/js/newRelic.js"></script>
34+
<script
35+
src="https://cdn.lrkt-in.com/LogRocket.min.js"
36+
crossorigin="anonymous"
37+
></script>
38+
<script>
39+
window.LogRocket && window.LogRocket.init("1csnxc/analyticsweb");
40+
</script>
3441
<script
3542
type="text/javascript"
3643
src="https://unpkg.com/launchdarkly-js-client-sdk@3.5.0"
@@ -56,7 +63,7 @@
5663
gtag(
5764
"consent",
5865
"default",
59-
JSON.parse(localStorage.getItem("CONSENT_MODE")),
66+
JSON.parse(localStorage.getItem("CONSENT_MODE"))
6067
);
6168
}
6269
gtag("set", "url_passthrough", true);
@@ -139,7 +146,7 @@
139146
};
140147
i =
141148
"disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(
142-
" ",
149+
" "
143150
);
144151
for (h = 0; h < i.length; h++) g(a, i[h]);
145152
const j = "set set_once union unset remove delete".split(" ");
@@ -154,7 +161,7 @@
154161
for (
155162
var d = {},
156163
e = ["get_group"].concat(
157-
Array.prototype.slice.call(arguments, 0),
164+
Array.prototype.slice.call(arguments, 0)
158165
),
159166
c = 0;
160167
c < j.length;
@@ -197,7 +204,7 @@
197204
let n = function (e) {
198205
return function () {
199206
heap.push(
200-
[e].concat(Array.prototype.slice.call(arguments, 0)),
207+
[e].concat(Array.prototype.slice.call(arguments, 0))
201208
);
202209
};
203210
},
@@ -1323,18 +1330,18 @@ <h2>We value your privacy</h2>
13231330
* Populate section element with initial data layers object
13241331
*/
13251332
document.querySelector(
1326-
"#json-section",
1333+
"#json-section"
13271334
).innerHTML += `<p><em>Consent Mode: Initial State [0]</em></p><pre>${JSON.stringify(
13281335
window.dataLayer.at(0),
13291336
undefined,
1330-
2,
1337+
2
13311338
)}</pre>`;
13321339
document.querySelector(
1333-
"#json-section",
1340+
"#json-section"
13341341
).innerHTML += `<p><em>Message: dataLayer.push and utag_data [3]</em></p><pre>${JSON.stringify(
13351342
window.dataLayer.at(3),
13361343
undefined,
1337-
2,
1344+
2
13381345
)}</pre>`;
13391346

13401347
/**
@@ -1349,7 +1356,7 @@ <h2>We value your privacy</h2>
13491356
focusThis.lastElementChild.scrollIntoView();
13501357
focusThis.lastElementChild.className = "highlight";
13511358
focusThis.lastElementChild.previousElementSibling.classList.remove(
1352-
"normal",
1359+
"normal"
13531360
);
13541361

13551362
/**

0 commit comments

Comments
 (0)