Skip to content

Commit

Permalink
fix: don't send application id to askem (HL-1089) (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjturt authored Dec 20, 2023
1 parent 37e3e5d commit 0720e28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/benefit/applicant/src/hooks/useAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ export const useAskem = (
// eslint-disable-next-line scanjs-rules/assign_to_src
script.src = ASKEM_SCRIPT_URL;
script.type = 'text/javascript';
const canonicalUrl = `${window.location.host}/application`;

window.rnsData = {
apiKey: process.env.NEXT_PUBLIC_ASKEM_API_KEY,
title: 'Helsinki-lisä',
canonicalUrl: window.location.href,
canonicalUrl,
};

document.body.append(script);
Expand Down

0 comments on commit 0720e28

Please sign in to comment.