Skip to content

Commit

Permalink
Merge pull request #20 from newfold-labs/Remove-event-deactivation-du…
Browse files Browse the repository at this point in the history
…ration

Removed event for sending Deactivation duration
  • Loading branch information
wpalani authored Jul 10, 2024
2 parents 1ccd416 + ae9033b commit 77fba9e
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 77fba9e

Please sign in to comment.