Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Questions:

...

Questions:

  •  There are some possibilities on how to send the events to be consumed in mParticle. Below you can find the suggestions. Final implementation decision should be reviewed with Data RBI stakeholders.

Technical Refinement

Description

1-) When the agreement update modal is showed up during transition pages:

...

mparticleLogRBIEvent({
Code Block
languagejs
logRBIEvent({
  name: CustomEventNames.AGREEMENTSMODAL_UPDATE_MODAL,
           SHOWN,
  type: EventTypes.Other,
          Modal,
   attributes: {title: "Terms updated"},
           
})

no attributes being passed… only registering the event…
Create new custom event MODAL_SHOWN in

Code Block

constants:

AGREEMENTS_UPDATE_MODAL

mparticle-client interface:

Code Block
export interface IAgreementsUpdatePopup extends IEventBase {
    name: 'Agreements Update Modal';
    type: EventTypes.Other;
    attributes: {};
}
workspaces/frontend/src/state/mParticle/constants.ts

Pass attribute title “Terms updated”
Take a look how attributes should be passed

Code Block
workspaces/frontend/src/state/mParticle/mparticle-adapter.ts

2-) When user clicks on the Continue button (Accepted the updated agreement)

...

2.a -) Using existing CLICK_EVENT : (tick)

mParticle.
Code Block
languagejs
logRBIEvent({
 
  name: CustomEventNames.CLICK_EVENT,

   type: EventTypes.Navigation,
 
  attributes: {
 
    component: ClickEventComponentNames.BUTTON,

     text: 'Accepted updated agreement',
 
  },
 
});

OR

2.b -) New event without attributes Accepted updated agreement:

Code Block
languagejs
logRBIEvent({
     
  name: 'AgreementsAccepted updated Updateagreement',
     
  type: EventTypes.Other,
     
  attributes: {
   
     <>
    
   },
    
 });

OR

2.c -)new event with customized attributes AGREEMENTS_UPDATE_DECISION:

Code Block
languagejs
{


   const data = {
 
    'updatedAgreements'?[]: string,

     'action' : accepted | disagree
 'accepted'
  };
     logEventlogRBIEvent(CustomEventNames.AGREEMENTS_UPDATE_DECISION, EventTypes.Other, data);
 
}

3-) When user clicks on the

...

disagree and logout button

...

3.a -)Using existing CLICK_EVENT : (tick)

Code Block
languagejs
  mParticle.logRBIEvent({

   name: CustomEventNames.CLICK_EVENT,
 
  type: EventTypes.Navigation,
 
  attributes: {

     component: ClickEventComponentNames.BUTTON,
 
    text: 'Disagree updated agreements and Logoutlogout',
 
  },

 });

OR

3.b -)New event without attributes Disagree:

Code Block
languagejs
logRBIEvent({
     
  name: 'Disagree and logout',
     
  type: EventTypes.Other,
     
  attributes: {
    
    <>
     
  },
     
});

OR

3.c -)new event with customized attributes AGREEMENTS_UPDATE_DECISION :

Code Block
languagejs
{

 
  const data = {

     'updatedAgreements'?[]: string,
 
    'action' : accepted | disagree
 'disagree'
  };

    logEventlogRBIEvent(CustomEventNames.AGREEMENTS_UPDATE_DECISION, EventTypes.Other, data);
 
}