Skip to content

Commit

Permalink
[CCAP-658] Track family confirmation code for provider visits (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
cram-cfa authored Feb 11, 2025
1 parent 28aa3db commit 98b84a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/templates/fragments/mixpanelTracking.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
'number_of_adult': `[[ ${T(org.ilgcc.app.utils.SubmissionUtilities).getMixpanelValue(submission, "adultDependents")} ]]`,
}

if (`[[ ${session.confirmationCode != null} ]]` === 'true') {
tracking_params['family_confirmation_code'] = `[[ ${session.confirmationCode} ]]`;
}

const intercepted_param = window.location.href.includes("?intercepted=") ? window.location.href.split("?intercepted=")[1].split('&')[0] : null

if (intercepted_param) {
Expand Down

0 comments on commit 98b84a9

Please sign in to comment.