Skip to content

Commit 7a8745a

Browse files
committed
datadog script head extension
1 parent a5187f5 commit 7a8745a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/.overrides/main.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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: 'pub449343093761bcdee5ce31a30f90596c',
11+
applicationId: '7c38204b-fae7-4e8d-9060-41e4d312c405',
12+
site: 'datadoghq.com',
13+
service: 'test',
14+
env: '<ENV_NAME>',
15+
// Specify a version number to identify the deployed version of your application in Datadog
16+
// version: '1.0.0',
17+
sessionSampleRate: 100,
18+
sessionReplaySampleRate: 100,
19+
trackUserInteractions: true,
20+
trackResources: true,
21+
trackLongTasks: true,
22+
defaultPrivacyLevel: 'mask-user-input',
23+
});
24+
25+
window.DD_RUM &&
26+
window.DD_RUM.startSessionReplayRecording();
27+
</script>
28+
{{ super() }}
29+
<!-- Add scripts that need to run afterwards here -->
30+
{% endblock %}

0 commit comments

Comments
 (0)