You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/real_user_monitoring/browser/_index.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,11 @@ datadogRum.init({
40
40
applicationId:'<DATADOG_APPLICATION_ID>',
41
41
clientToken:'<DATADOG_CLIENT_TOKEN>',
42
42
site:'datadoghq.com',
43
+
// service: 'my-web-application',
44
+
// env: 'production',
45
+
// version: '1.0.0',
43
46
sampleRate:100,
47
+
trackInteractions:true,
44
48
});
45
49
```
46
50
@@ -54,13 +58,19 @@ datadogRum.init({
54
58
applicationId:'<DATADOG_APPLICATION_ID>',
55
59
clientToken:'<DATADOG_CLIENT_TOKEN>',
56
60
site:'datadoghq.eu',
61
+
// service: 'my-web-application',
62
+
// env: 'production',
63
+
// version: '1.0.0',
57
64
sampleRate:100,
65
+
trackInteractions:true,
58
66
});
59
67
```
60
68
61
69
{{% /tab %}}
62
70
{{< /tabs >}}
63
71
72
+
**Note**: The `trackInteractions` initialization parameter enables the automatic collection of user clicks in your application. **Sensitive and private data** contained on your pages may be included to identify the elements interacted with.
73
+
64
74
## Bundle Setup
65
75
66
76
Paste the generated code snippet into the head tag (in front of any other script tags) of every HTML page you want to monitor in your application. Including the script tag higher and synchronized ensures Datadog RUM can collect all performance data and errors.
@@ -79,7 +89,11 @@ Paste the generated code snippet into the head tag (in front of any other script
79
89
clientToken:'<CLIENT_TOKEN>',
80
90
applicationId:'<APPLICATION_ID>',
81
91
site:'datadoghq.com',
92
+
// service: 'my-web-application',
93
+
// env: 'production',
94
+
// version: '1.0.0',
82
95
sampleRate:100,
96
+
trackInteractions:true,
83
97
});
84
98
</script>
85
99
```
@@ -98,14 +112,20 @@ Paste the generated code snippet into the head tag (in front of any other script
98
112
clientToken:'<CLIENT_TOKEN>',
99
113
applicationId:'<APPLICATION_ID>',
100
114
site:'datadoghq.eu',
115
+
// service: 'my-web-application',
116
+
// env: 'production',
117
+
// version: '1.0.0',
101
118
sampleRate:100,
119
+
trackInteractions:true,
102
120
});
103
121
</script>
104
122
```
105
123
106
124
{{% /tab %}}
107
125
{{< /tabs >}}
108
126
127
+
**Note**: The `trackInteractions` initialization parameter enables the automatic collection of user clicks in your application. **Sensitive and private data** contained on your pages may be included to identify the elements interacted with.
128
+
109
129
**Note**: The `window.DD_RUM` check is used to prevent issues if a loading failure occurs with the RUM SDK.
0 commit comments