Traders Unite!

Wall Street CEOs cautious about path of US economy

” + planName + ““; /* current plan info ends */ /* next billing html starts */ if (planData.next_billing_at != “” && planData.next_billing_at != “null” && typeof planData.next_billing_at != “undefined”) {billingCycleText = “Next Billing Date : “; nextActivationDate = planData.next_billing_at; } else if (planData.expires_at != “” && planData.expires_at != “null” && typeof planData.expires_at != “undefined”) {billingCycleText = “Expiry date : “; nextActivationDate = planData.expires_at; } else {billingCycleText = “Expiry date : “; nextActivationDate = planData.current_term_ends_at; } var nextBillingMonth = new Date(nextActivationDate).toDateString().split(” “)[1]; var nextBillingDay = new Date(nextActivationDate).getUTCDate(); var nextBillingYear = new Date(nextActivationDate).getFullYear(); var nextBillingHtml = nextBillingDay ? “” + billingCycleText + nextBillingDay + ” ” + nextBillingMonth + ” ” + nextBillingYear + “

” + planDescName + “ ₹ ” + planPrice + “

” + nextBillingHtml + “

“; document.getElementById(“userPlanMSSec”).style = “display: block;”; document.getElementById(“userPlanMSSec”).innerHTML = html; } } else if (planData.plan.plan_type.toLowerCase().includes(“wsj”) && wsjEmail != “”) {html = “MANAGE SUBSCRIPTION

” + renewText + currentPlanInfo + nextBillingHtml + wsjHtml + “

“; document.getElementById(“userPlanMSSec”).style = “display: block;”; document.getElementById(“userPlanMSSec”).innerHTML = html; getWsjStatus(wsjEmail); } else {html = “MANAGE SUBSCRIPTION

” + renewText + currentPlanInfo + nextBillingHtml + “

“; document.getElementById(“userPlanMSSec”).style = “display: block;”; document.getElementById(“userPlanMSSec”).innerHTML = html; } if (partnerValue == “comviva”) {document.getElementById(“manageSub”).style = “display: none;”; } } else {if (!document.getElementById(“userProfileInfo”).classList.contains(“subsUpdated”)) {var msgEl = document.createElement(“div”); msgEl.classList.add(“newBlock”); msgEl.classList.add(“planSec”); msgEl.innerHTML = “Subscribe Now“; document.getElementById(“userProfileInfo”).after(msgEl); document.getElementById(“userProfileInfo”).classList.add(“subsUpdated”); } } } } }; xhr.open(“GET”, “/subscription/fetch/userinfo/” + window.getCookie(“token”)); xhr.send(); } function closePopUp(elm) {var isSubscribedCookie = getCookie(“isSubscribed”); if (isSubscribedCookie !== “undefined” && isSubscribedCookie) {setCookieNewsletter(“isSubscribed”, isSubscribedCookie, -1); } if (elm !== “undefined” && elm && document.getElementById(elm)) {document.getElementById(“newsltrOvrlay”).style.display = “none”; document.getElementById(elm).style.display = “none”; } } function openUserSideProfile() {closePopUp(“thnkNewsletter”); getUserData(); ga(“send”, “event”, “my_account”, “Click”); document.getElementById(“myAccount”).style.width = “320px”; document.getElementById(“Userbgoverlay”).style.display = “block”; var trackData = {}; trackWebEngageEvents(“My Account Viewed”, trackData); } function closeUserSideProfile() {document.getElementById(“myAccount”).style.width = “0”; document.getElementById(“Userbgoverlay”).style.display = “none”; } function goToManageSubscriptions(storyId, tenureEndDate, currentPlanName) {let redirectUrl = “https://accounts.hindustantimes.com/lm/managesubscription”; let queryParamString = trackRenewClick(storyId, tenureEndDate, currentPlanName); redirectUrl += queryParamString; redirectUrl += “&check_app=true”; setTimeout(() => {window.location.href = redirectUrl; }, 500) } function isWithinDiscounted(tenureEndDate) {try {const diffDays = dateDiff(tenureEndDate); if ((diffDays > -61 && diffDays 16 && diffDays 14) {return true; } else {return false; } } catch (e) {console.log(e); return false; } } function dateDiff(date) {const dateCompare = new Date(date); const dateToday = new Date(); const diffTime = dateToday – dateCompare; const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24)); return diffDays; } function getDaysInExpiry(tenureEndDate) {try {const diffDays = dateDiff(tenureEndDate) – 1; let daysInExpiry = “”; if (diffDays > 0) {daysInExpiry = “D+” + diffDays; } else {daysInExpiry = “D” + diffDays; } return daysInExpiry; } catch (e) {console.log(e); return “”; } } function getWsjStatus(wsjEmail) {var wsjStatusHtml = “”; var xhrWsj = new XMLHttpRequest(); xhrWsj.onreadystatechange = function() {if (xhrWsj.readyState === 4) {var dataWsj = JSON.parse(xhrWsj.responseText); if (dataWsj && dataWsj.data && dataWsj.data.redemption_code_status && dataWsj.data.redemption_code_status != “” && dataWsj.data.redemption_code_status != “null” && typeof dataWsj.data.redemption_code_status != “undefined”) {redemptionCodeStatus = dataWsj.data.redemption_code_status; if (redemptionCodeStatus == “EXHAUSTED”) {wsjStatusHtml = ‘

Your WSJ subscription is active

‘; document.getElementById(“activateWsj”).innerHTML = wsjStatusHtml; } else {if (dataWsj.data.redemption_url != null && typeof dataWsj.data.redemption_url != “undefined” && dataWsj.data.redemption_url != “”) {wsjStatusHtml = “

You have not used your The Wall Street Journal access yet. Activate now

“; document.getElementById(“activteWsj”).innerHTML = wsjStatusHtml; } else {document.getElementById(“activateWsj”).style.display = “none”; console.log(“redemption url is not found”); } } } } }; xhrWsj.open(“GET”, “/subscription/fetch/wsjStatus/” + wsjEmail); xhrWsj.send(); } function hideOnPhonePe() {var userAgent = navigator.userAgent; var objectsToHide = document.getElementsByClassName(“hideOnPhonePe”); if (userAgent.includes(“phonepe-webview”) && objectsToHide.length != 0) {for (i = 0; i getBrandName(p)).join(“+”); } function getBrandName(brandCode) {if (!publicationsObj) return brandCode; if (!publicationsObj.planName) return brandCode; if (!publicationsObj.planName[brandCode]) return brandCode; return publicationsObj.planName[brandCode]; } function fetchPublications() {return fetch(“/json/publications.json”).then((resp) => resp.json()).then((resp) => {if (resp.success) {publicationsObj = resp.data; } }).catch((err) => console.log(“failed to fetch publicatons”, err)); } function getPlanNameByBasePlan(basePlan) {if (!basePlan) return; return basePlan.map((plan) => replaceAll(getBrandName(publicationsObj.planNameEvent[plan])), ” “, “_”).join(“;”); } function whatsappCtaClick() {if (whatsappOpted == true) {trackWebEngageEvents(“manage_whatsapp_updates_clicked”, trackDataWa); Moengage.track_event(“manage_whatsapp_updates_clicked”, {Gender: trackDataWa[“Gender”], Plan: trackDataWa[“Plan”], “Registered at”: trackDataWa[“Registered at”], isSubscribed: trackDataWa[“isSubscribed”], Origin: trackDataWa[“Origin”] }); var whatsappOptInUrl = “https://accounts.hindustantimes.com/whatsapp_opt_in?ref=lm” + “&Gender=” + trackDataWa[“Gender”] + “&Plan=” + trackDataWa[“Plan”] + “&Registered_at=” + trackDataWa[“Registered at”] + “&isSubscribed=” + trackDataWa[“isSubscribed”] + “&origin=” + trackDataWa[“Origin”]; window.location.href = whatsappOptInUrl; } else {trackWebEngageEvents(“get_alert_on_whatsapp_clicked”, trackDataWa); Moengage.track_event(“get_alert_on_whatsapp_clicked”, {Gender: trackDataWa[“Gender”], Plan: trackDataWa[“Plan”], “Registered at”: trackDataWa[“Registered at”], isSubscribed: trackDataWa[“isSubscribed”], Origin: trackDataWa[“Origin”] }); if (typeof isSubscribedUser != “undefined” && isSubscribedUser != null) {if (isSubscribedUser == true) {var whatsappOptInUrl = “https://accounts.hindustantimes.com/whatsapp_opt_in?ref=lm” + “&Gender=” + trackDataWa[“Gender”] + “&Plan=” + trackDataWa[“Plan”] + “&Registered_at=” + trackDataWa[“Registered at”] + “&isSubscribed=” + trackDataWa[“isSubscribed”] + “&origin=” + trackDataWa[“Origin”]; window.location.href = whatsappOptInUrl; } else {toggleWhatsappNonSubsPopUp(true); } } } } function trackRenewClick(storyId, tenureEndDate, currentPlanName) {let targetStorySection = “”; let targetStorySubSection = “”; let targetStoryURL = “”; let targetStoryTitle = “”; let targetStoryAuthorName = “”; let expiryPeriod = “”; let trackData = {}; try {if (typeof storyId != “undefined” && storyId != null && storyId.trim() != “”) {const targetBoxDivId = “box_” + storyId.trim(); const targetBoxDivEl = document.getElementById(targetBoxDivId); const targetArticleDivId = “article_” + storyId; try {targetStorySection = targetBoxDivEl.closest(“[data-vars-section]”).getAttribute(“data-vars-section”); } catch (e) {if (typeof snowplowSection != “undefined”) {targetStorySection = snowplowSection; } console.log(e); } try {targetStorySubSection = targetBoxDivEl.closest(“[data-vars-subsection]”).getAttribute(“data-vars-subsection”); } catch (e) {console.log(e); } try {targetStoryURL = domainURLEvents + targetBoxDivEl.closest(“[data-weburl]”).getAttribute(“data-weburl”); } catch (e) {console.log(e); } try {if (document.getElementById(“headline_” + storyId) !== null) {targetStoryTitle = document.getElementById(“headline_” + storyId).innerText; } } catch (e) {console.log(e); } try {const authEl = document.getElementById(targetArticleDivId).getElementsByClassName(“author”)[0]; if (typeof authEl.innerText != ‘undefined’ && authEl.innerText != null) {targetStoryAuthorName = authEl.innerText; } else {targetStoryAuthorName = “”; } } catch (e) {console.log(e); } try {expiryPeriod = getDaysInExpiry(tenureEndDate); } catch (e) {expiryPeriod = “”; console.log(e); } } trackData.domain = “LM”; trackData[“article section”] = targetStorySection; trackData[“article subsection”] = targetStorySubSection; trackData[“article id”] = storyId; trackData[“article title”] = targetStoryTitle; trackData[“author name”] = targetStoryAuthorName; trackData[“expiry period”] = expiryPeriod; trackData[“plan name before renewal”] = currentPlanName; trackData[“manage plan page reason”] = “my_account”; trackData.Platform = “Web”; var gaData = {dimension22: “LM”, dimension23: trackData[“manage plan page reason”], dimension26: trackData[“Paywall Reason”], dimension48: trackData[“expiry period”], dimension49: trackData[“article section”], dimension50: trackData[“article subsection”], dimension51: trackData[“article id”], dimension3: trackData[“author name”], dimension66: currentPlanName }; gaTrackingEvent1(“subscription”, “renew_now_clicked”, trackData[“article title”], gaData); Moengage.track_event(“renew_now_clicked”, trackData); } catch (e) {console.log(e); } return “?domain=” + trackData[“domain”] + “&article_section=” + trackData[“article section”] + “&article_subsection=” + trackData[“article subsection”] + “&article_id=” + trackData[“article id”] + “&article_title=” + trackData[“article title”] + “&author_name=” + trackData[“author name”] + “&expiry_period=” + trackData[“expiry period”] + “&plan_name_before_renewal=” + trackData[“plan name before renewal”] + “&manage_plan_page_reason=” + trackData[“manage plan page reason”] + “&platform=” + trackData[“Platform”]; }

No comments yet.

Leave a Reply