Skip to content

Commit

Permalink
✨ [open-formulieren/open-forms#4115] Use abort source ID in abort button
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Apr 19, 2024
1 parent 0bde8bf commit 3695ed9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/Context.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ const FormContext = React.createContext({
FormContext.displayName = 'FormContext';

const AnalyticsToolsConfigContext = React.createContext({
govmetricSourceId: '',
govmetricSecureGuid: '',
govmetricSourceIdFormFinished: '',
govmetricSourceIdFormAborted: '',
govmetricSecureGuidFormFinished: '',
govmetricSecureGuidFormAborted: '',
enableGovmetricAnalytics: false,
});

Expand Down
4 changes: 2 additions & 2 deletions src/components/AbortButton/AbortButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const AbortButton = ({isAuthenticated, onDestroySession}) => {

if (analyticsToolsConfig.enableGovmetricAnalytics) {
const govmetricUrl = buildGovMetricUrl(
analyticsToolsConfig.govmetricSourceId,
analyticsToolsConfig.govmetricSourceIdFormAborted,
form.slug,
analyticsToolsConfig.govmetricSecureGuid
analyticsToolsConfig.govmetricSecureGuidFormAborted
);

window.open(govmetricUrl);
Expand Down

0 comments on commit 3695ed9

Please sign in to comment.