<script>
var initOpts = {
projectKey: "cHOo2YCr51OpP38aMJJ5",
ingestPoint: "https://openreplay.shelfroad.com/ingest",
defaultInputMode: 0,
obscureTextNumbers: false,
obscureTextEmails: false,
__DISABLE_SECURE_MODE: true,
};
var startOpts = { userID: "john@doe.com" };
(function (A, s, a, y, e, r) {
r = window.OpenReplay = [e, r, y, [s - 1, e]];
s = document.createElement('script'); s.src = A; s.async = !a;
document.getElementsByTagName('head')[0].appendChild(s);
r.start = function (v) { r.push([0]) };
r.stop = function (v) { r.push([1]) };
r.setUserID = function (id) { r.push([2, id]) };
r.setUserAnonymousID = function (id) { r.push([3, id]) };
r.setMetadata = function (k, v) { r.push([4, k, v]) };
r.event = function (k, p, i) { r.push([5, k, p, i]) };
r.issue = function (k, p) { r.push([6, k, p]) };
r.isActive = function () { return false };
r.getSessionToken = function () { };
})("//static.openreplay.com/11.0.1/openreplay.js", 1, 0, initOpts, startOpts);
document.querySelector('script[src*="openreplay.js"]').onload = function () {
// Wait a short moment to ensure tracker is initialized
setTimeout(() => {
console.log("rocky js debug")
if (window.OpenReplay) {
setInterval(() => {
console.log("rocky js debug interval")
window.OpenReplay.event('rocky', 'shoes');
window.OpenReplay.issue('payment_error', { code: 500, context: 42 });
}, 2000);
} else {
console.error('OpenReplay not initialized');
}
}, 1000);
};
</script>
Technical events aren’t shown in session replay. then find SDK start request “https://domain/ingest/v1/web/tags” response 404.
version: 1.21, edition: community, docker deployment