Error Report Interactions

Error interactions capture when an error occurs on your site.
Interaction Name Description
error Captures errors that occur on your site.

Fields

Field Details
attributes
Type
object
Description
A dictionary of values that you supply.
id
Type
string
Description
Required. A unique ID representing the error type.
name
Type
string
Description
Required. The event name.

Error Report Event

event.target.dispatchEvent(
    new CustomEvent('experience_interaction', {
       bubbles: true,
       composed: true,
       detail: {
          name: 'error',
          id: 'error-id-1',
          attributes: {
             type: "api-error",
             message: "503: service not available"
          },
       },
    })
);