further-external / Apollo-Documentation-UH-Hospital---CJA

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

Form Start #7

Open rossozburnsdi opened 1 year ago

rossozburnsdi commented 1 year ago

Form Started

Begin the Schedule Me Now flow

Javascript Code

window.appEventData = window.appEventData || [];
appEventData.push({
  "event": "Form Started",
    "form": {
        "eventName": "begin_openScheduling",
        "formType": "<formType>"
    }
});

Variable Definitions

Path Type Description Example
form.eventName string Static value, see examples begin_openScheduling, submit_appointment
form.formType string Form type used for grouping of similar forms in reports. Address, Contact, Comment, Review, Payment

uhproppe commented 1 year ago

This change is now in QA. To test, for open scheduling we have:

Radiology open scheduling: https://qademo.uhhospitals.org/radiology-scheduling Doctor open scheduling: https://qademo.uhhospitals.org/doctors/doctor-open-scheduling?url=https://mycharttst.uhhospitals.org/mycharttst&departmentId=102047002,104210001&visitId=&providerId=103340&providerNpi=1134152309

For Sitecore forms (WFFM), we have a sample form here:

https://demo.uhhospitals.local/form-demo

uhproppe commented 1 year ago

In prod: https://www.uhhospitals.org/radiology-scheduling?type=Mam and https://www.uhhospitals.org/doctors/search-results?q=Frantz%2C%20Martin&category=Provider&latitude=41.5091257&longitude=-81.6089873# for testing

rossozburnsdi commented 1 year ago

@uhproppe I seeing the event fire in the data layer when the page with the form loads. That will be fine but do you want it to fire when the user first interacts with the form?

We can discuss on a call if you would like. If you are ok with the current set up this can be marked as done.

Image

uhproppe commented 1 year ago

I'll run this by our programmers. Good catch

sarahelizabethowen commented 11 months ago

Hi @uhproppe :)

When this page with a form loads - https://www.uhhospitals.org/services/cancer-services/gastrointestinal-cancer/pancreatic-cancer/surgery-appointment - only the page load call is fired off. Once I click into the form, then the Form Start event is pushed to the appEventData layer (please see below screenshot).

If UH is in a code freeze for the holidays, this update can be pushed to production the first week of January. Please let me know if this is good.

appEventData push Image

Data in Workspace Image

Thanks - Sarah :)

FYI @msawlorSDI

sarahelizabethowen commented 10 months ago

Hi @uhproppe :)

The deploy is looking good! When I click in the form at the bottom of this page - https://www.uhhospitals.org/services/cancer-services/gastrointestinal-cancer/pancreatic-cancer/surgery-appointment - the Form Start event is pushed to the appEventData layer (please see below screenshot).

appEventData push Image

Network Call with Data Image

We will continue to monitor the deployment with this Workspace: https://experience.adobe.com/#/@uhhospitals/platform/analytics/#/workspace/edit/6582174a46f77219c77e3272?panelId=9824AF0C-6A90-49FA-8635-88F56B4C52B1

Thanks - Sarah :)

FYI @msawlorSDI