Error Report Interactions

Error interactions capture when an error occurs on your site.

Interaction NameDescription
errorCaptures errors that occur on your site.

Fields 

FieldTypeDetails
attributesobjectA dictionary of values that you supply.
idstringRequired. A unique ID representing the error type.
namestringRequired. 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);