Updates.
This commit is contained in:
parent
5b945585c5
commit
5ef256dd38
2 changed files with 7 additions and 7 deletions
|
|
@ -69,7 +69,7 @@ export default {
|
|||
action: action,
|
||||
label: labelToLog,
|
||||
value: undefined,
|
||||
path: `/fmg/?${queryStrings.FMG_PAGE}=${currentPageName}`,
|
||||
path: `/iss/?${queryStrings.ISS_PAGE}=${currentPageName}`,
|
||||
};
|
||||
|
||||
pushToDataLayerIfDefined(eventToBePushed);
|
||||
|
|
@ -83,7 +83,7 @@ export default {
|
|||
const currentPageName = getPageNameByQueryString();
|
||||
const pageViewEvent = {
|
||||
event: GaEvents.PAGE_VIEW_EVENT,
|
||||
pagePath: `/fmg/?${queryStrings.FMG_PAGE}=${currentPageName}`,
|
||||
pagePath: `/iss/?${queryStrings.ISS_PAGE}=${currentPageName}`,
|
||||
pageTitle: currentPageName,
|
||||
};
|
||||
|
||||
|
|
@ -199,8 +199,8 @@ function pushToDataLayerIfDefined(data) {
|
|||
function getPageNameByQueryString() {
|
||||
const params = new URLSearchParams(location.search);
|
||||
|
||||
if (params.has(queryStrings.FMG_PAGE)) {
|
||||
return params.get(queryStrings.FMG_PAGE);
|
||||
if (params.has(queryStrings.ISS_PAGE)) {
|
||||
return params.get(queryStrings.ISS_PAGE);
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ describe("analyticsMixin.js", () => {
|
|||
action: "action",
|
||||
label: "label",
|
||||
value: undefined,
|
||||
path: "/fmg/?fmgPage=",
|
||||
path: "/iss/?issPage=",
|
||||
});
|
||||
|
||||
// Act
|
||||
|
|
@ -90,7 +90,7 @@ describe("analyticsMixin.js", () => {
|
|||
action: "action",
|
||||
label: "33333",
|
||||
value: undefined,
|
||||
path: "/fmg/?fmgPage=",
|
||||
path: "/iss/?issPage=",
|
||||
});
|
||||
|
||||
// Act
|
||||
|
|
@ -116,7 +116,7 @@ describe("analyticsMixin.js", () => {
|
|||
action: "action",
|
||||
label: "111",
|
||||
value: undefined,
|
||||
path: "/fmg/?fmgPage=",
|
||||
path: "/iss/?issPage=",
|
||||
});
|
||||
|
||||
// Act
|
||||
|
|
|
|||
Loading…
Reference in a new issue