...
Technical Refinement
Description
Call the following code when When agreement update modal is showed up during transition pages:
Code Block |
---|
mparticleLogRBIEvent({
name: CustomEventNames.AGREEMENTS_UPDATE_MODAL,
type: EventTypes.Other,
attributes: {},
}) |
constants:
AGREEMENTS_UPDATE_MODAL
mparticle-client interface:
Code Block |
---|
export interface IAgreementsUpdatePopup extends IEventBase {
name: 'Agreements Update Modal';
type: EventTypes.Other;
attributes: {};
} |
When user clicks on the Continue (Accepted the updated agreement)
Code Block |
---|
mParticle.logRBIEvent({ name: CustomEventNames.CLICK_EVENT, type: EventTypes.Navigation, attributes: { component: ClickEventComponentNames.BUTTON, text: 'Accepted updated agreement', }, }); |
OR
Code Block |
---|
logRBIEvent({ name: 'Agreements Update', type: EventTypes.Other, attributes: { <> }, }); |
OR
...
Code Block |
---|
{
const data = {
'updatedAgreements': string,
'action' : accepted | disagree
};
logEvent(CustomEventNames.AGREEMENTS_UPDATE, EventTypes.Other, data);
} |
When user clicks on the diagree and logout
Code Block |
---|
mParticle.logRBIEvent({ name: CustomEventNames.CLICK_EVENT, type: EventTypes.Navigation, attributes: { component: ClickEventComponentNames.BUTTON, text: 'Disagree and Logout', }, }); |
OR
Code Block |
---|
logRBIEvent({ name: 'Disagree and logout', type: EventTypes.Other, attributes: { <> }, }); |
OR
Code Block |
---|
{ const data = { 'updatedAgreements': string, 'action' : accepted | disagree }; logEvent(CustomEventNames.AGREEMENTS_UPDATE, EventTypes.Other, data); } |