Skip to content

Commit 2dc98cb

Browse files
committed
docs: say why the internal-traffic snippet ignores storage errors
1 parent 900486e commit 2dc98cb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎docs/overrides/main.html‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
window.dataLayer = window.dataLayer || [];
2222
(function () { dataLayer.push(arguments); })("set", { traffic_type: "internal" });
2323
}
24-
} catch (e) {}
24+
} catch (e) {
25+
// localStorage is unavailable when storage is blocked; the visit is then not tagged.
26+
}
2527
</script>
2628
{% endif %}
2729
{{ super() }}

0 commit comments

Comments
 (0)