Skip to content

Commit 80847df

Browse files
Merge pull request #53 from A-Baji/datadog
Datadog integration
2 parents ad470b6 + 9a7bc64 commit 80847df

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/.overrides/main.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{% extends "base.html" %}
2+
3+
{% block extrahead %}
4+
<script
5+
src="https://www.datadoghq-browser-agent.com/us1/v4/datadog-rum.js"
6+
type="text/javascript">
7+
</script>
8+
<script>
9+
window.DD_RUM && window.DD_RUM.init({
10+
clientToken: 'pub10d7870188992f8c006cf7ba1f160a3f',
11+
applicationId: '36a4de35-5eaa-435a-8c56-048c1b4d5d8c',
12+
site: 'datadoghq.com',
13+
service: 'datajoint-docs',
14+
env: 'production',
15+
sessionSampleRate: 100,
16+
sessionReplaySampleRate: 100,
17+
trackUserInteractions: true,
18+
trackResources: true,
19+
trackLongTasks: true,
20+
defaultPrivacyLevel: 'mask-user-input',
21+
});
22+
23+
window.DD_RUM &&
24+
window.DD_RUM.startSessionReplayRecording();
25+
</script>
26+
{{ super() }}
27+
<!-- Add scripts that need to run afterwards here -->
28+
{% endblock %}

0 commit comments

Comments
 (0)