searchdiscovery / Apollo-Documentation-Xactly-Corp

An Apollo generated Event Driven Data Layer
0 stars 0 forks source link

Form Sumission Failed #11

Open rossozburnsdi opened 1 year ago

rossozburnsdi commented 1 year ago

Form Submission Failed

User submits any form on the site but there is an error. This event will apply to all forms.

Example Screenshot:

image

Javascript Code

window.dataLayer = window.dataLayer || [];
dataLayer.push({ event_data: null });  // Clear the previous event_data object.
dataLayer.push({
  "event": "form_error",
  "detailed_event": "Form Submission Failed",
    "event_data": {
        "error_message": "<error_message>",
        "form_name": "<form_name>",
        "form_type": "<form_type>"
    }
});
milind0299 commented 1 year ago

Hi @rossozburnsdi ,

Moving this to SDI Review

Thanks.

jerry-bennett commented 1 year ago

Tested on: http://xactlystg.prod.acquia-sites.com/company/contact-us

Use case: Typed into one of the form fields, then clicked submit. Also tried pressing enter instead of clicking.

Status: Looks good! Seeing the network call and data layer push correctly. Also seeing the tag fire in GTM.

Image

Image

rossozburnsdi commented 1 year ago

Image

jerry-bennett commented 1 year ago

PROD QA: @rossozburnsdi

Tested on: https://www.xactlycorp.com/company/contact-us

Use case: Loaded form, clicked on it, typed on letter, hit submit.

Status: Not working, seeing the correct data layer push but no network call.

Image

rossozburnsdi commented 1 year ago

Tested on: https://www.xactlycorp.com/company/contact-us

Use case: Loaded form, clicked on it, typed on letter, hit submit.

Status: Seeing the correct data layer push and network call.

Image