siteMapPerso
Changes
siteMap.js 14(+7 -7)
Details
siteMap.js 14(+7 -7)
diff --git a/siteMap.js b/siteMap.js
index 69cb107..5d7f621 100644
--- a/siteMap.js
+++ b/siteMap.js
@@ -74,11 +74,11 @@ let homeInteractions = {
}
let payWallInteractions = {
- name: "PayWall"
+ name: PayWallIteractionName()
}
const home = new PageType("Home", "cronista.com", homeInteractions, homeListeners, false);
-const payWall = new PageType(PayWallActions(), `cronista.com/suscripciones`, payWallInteractions, payWallListeners, false);
+const payWall = new PageType("PayWall", `cronista.com/suscripciones`, payWallInteractions, payWallListeners, false);
if (document.querySelector("#pagecontent .news") || document.querySelector("#pagecontent .news-minisite") || document.querySelector("#pagecontent .news-es") || document.querySelector("#pagecontent .news-mx")) {
const metaTag = document.querySelector('meta[property="og:image"]');
@@ -152,17 +152,17 @@ function GlobalActions(actionEvent) {
return actionEvent;
}
-function PayWallActions() {
+function PayWallIteractionName() {
let typeOfPayWall = "";
let limit = new URL(window.location.href).searchParams.get("limit")
if (limit != null) {
const isLimit = limit === 'true';
typeOfPayWall = !isLimit ? "choque exclusivo" : "choque metered";
- let continueUrl = new URL(window.location.href).searchParams.get("continue")
- typeOfPayWall = "Pay wall - " + typeOfPayWall + "Continue: " + continueUrl;
+ //let continueUrl = new URL(window.location.href).searchParams.get("continue")
+ typeOfPayWall = "Pay wall - " + typeOfPayWall;
} else {
- typeOfPayWall = "Choque directo";
+ typeOfPayWall = "Pay wall - Choque directo";
}
return typeOfPayWall;
@@ -275,4 +275,4 @@ function GenerateListeners(pageType, elements) {
function esURLValida(url) {
var regex = url.match(/^https:\/\/(?:dev|qa|www)\./i);
enviroment = regex[0]
-}
\ No newline at end of file
+}