Skip to content

Commit

Permalink
replace window.contextJsParameters by window.digitalData.page.pageInf… (
Browse files Browse the repository at this point in the history
#74)

* replace window.contextJsParameters by window.digitalData.page.pageInfo.language

* update following review
  • Loading branch information
hduchesne authored Jun 25, 2024
1 parent c69a7ee commit b1b73dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/javascript/app/SearchView/SearchView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const buildAndFireSearchEvent = searchTerm => {

searchEvent.properties = {
originForm: 'augmentedSearchForm',
language: window.contextJsParameters.lang,
language: window.digitalData?.page.pageInfo.language,
keyword: searchTerm,
origin: location.pathname
};
Expand Down

0 comments on commit b1b73dc

Please sign in to comment.