Error Report Interactions
| Interaction Name | Description |
|---|---|
| error | Captures errors that occur on your site. |
Fields
| Field | Type | Details |
|---|---|---|
| attributes | object | A dictionary of values that you supply. |
| id | string | Required. A unique ID representing the error type. |
| name | string | Required. The event name. |
Error Report Event
1event.target.dispatchEvent(
2 new CustomEvent('experience_interaction', {
3 bubbles: true,
4 composed: true,
5 detail: {
6 name: 'error',
7 id: 'error-id-1',
8 attributes: {
9 type: "api-error",
10 message: "503: service not available"
11 },
12 },
13 })
14);