Skip to content

Commit

Permalink
Removed event for sending Deactivation duration
Browse files Browse the repository at this point in the history
  • Loading branch information
mamatharao05 committed Jul 10, 2024
1 parent 1ccd416 commit ae9033b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions static/js/deactivation-survey.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@

// Send event
return await sendSurveyEvent( skipped )
.then( () => {
sendDurationEvent();
} )
.then( () => {
deactivatePlugin();
} );
Expand Down Expand Up @@ -224,23 +221,6 @@
);
};

/**
* Helper to send duration event data
*
* @return {Promise} via SendEvent
*/
const sendDurationEvent = async () => {
const deactivationDuration = document.getElementById(
'deactivation-duration'
).value;

return sendEvent(
'deactivation_duration_select',
'deactivation_duration',
deactivationDuration
);
};

/**
* Send Event through to GA4
*
Expand Down

0 comments on commit ae9033b

Please sign in to comment.