JavaScript Beacon
Bouncer Insight utilizes signals gathered from our JS Beacon for detecting anomalous behaviors
1
<script type="text/javascript">
2
var _user_id = "kingst"; // the user id, if known.
3
var _bip = window._bip || {};
4
window._bip = _bip;
5
_bip = {
6
"userId": _user_id,
7
"clientId": "YOUR_BOUNCER_CLIENT_ID",
8
"sessionId": "Session ID for this user session (optional)"
9
};
10
(function () {
11
function loadBeacon() {
12
var script = document.createElement('script');
13
script.type = 'text/javascript';
14
script.async = true;
15
script.src = "https://d28npvtfvv63k9.cloudfront.net/bip.js";
16
var first = document.getElementsByTagName('script')[0];
17
first.parentNode.insertBefore(script, first);
18
}
19
if (window.attachEvent) {
20
window.attachEvent('onload', loadBeacon);
21
} else {
22
window.addEventListener('load', loadBeacon, false);
23
}
24
})();
25
</script>
Copied!
Last modified 1yr ago
Copy link