Best 8GB RAM Mobile Phones (April 2026) in India

  हिन्दी में पढ़े

It's not hard to find a good smartphone these days with 8GB of RAM. The 8GB RAM mark is considered to be the benchmark for smartphones, but choosing one from the plethora of options can be difficult. Worry not; we've compiled this list to save you the trouble.

List of Best 8GB RAM Mobile Phones (April 2026)

Without any delays, here are the best 8GB RAM Mobile Phones (April 2026) that make the cut:

Read More
  • Samsung Galaxy S24 FE
Highlights
  • 6.7 inches 1080 x 2340 pixels Display
  • 50MP + 12MP + 8MP Triple Primary Camera, 10MP Front Camera
  • Android 14
  • Samsung Exynos 2400e, Deca Core
  • Non-Removable Li-Po 4700 mAh Battery

The Samsung Galaxy S24 FE has a 6.7-inch adaptive Dynamic AMOLED 2X display with up to 120Hz refresh rate. Powered by the Exynos 2400e SoC, the Galaxy S24 FE is confirmed to receive 7 years of Android updates. It also includes a 50MP triple rear camera system and a 10MP selfie camera. Moreover, the Galaxy S24 FE packs a 4,700mAh battery with support for 25W wired charging.

  • Apple iPhone 16 Pro Max
Highlights
  • 6.9 inches, 1320 x 2868 pixels Display
  • 48MP + 48MP + 12MP Triple Primary Camera, 12MP Single Front Camera
  • Apple iOS 18
  • Apple A18 Bionic (4nm), Hexa Core
  • Non-removable Li-Ion battery

The iPhone 16 Pro has a 6.3-inch Super Retina XDR OLED display with a 120Hz refresh rate. It is powered by the A18 Pro chip and gets a 48MP triple rear camera setup. It also supports 4K video recording at 120 frames per second and features an IP68 rating for dust and water resistance.

  • Vivo V40 Pro
Highlights
  • 6.8 inches, 1260 x 2800 pixels, Display
  • 50MP + 50MP + 50MP Primary Camera, 50MP Front Camera
  • Android 14
  • MediaTek Dimensity 8200 (4nm), Octa core
  • Non removable Li-Ion 5500 mAh battery

The Vivo V40 Pro has a 6.78-inch 1.5K 3D Curved AMOLED display with a 120Hz refresh rate and a peak brightness of 4,500 nits. The device is powered by the MediaTek Dimensity 9200+ SoC and packs a massive 5,500 mAh battery with 80W wired fast charging support. For optics, the Vivo V40 Pro has 50MP triple rear cameras and a 50MP selfie camera.

  • Vivo Y300 5G
Highlights
  • 6.7 inches, 1080 x 2400 pixels Display
  • 50MP + 2MP Dual Primary Camera, 32MP Front Camera
  • Android 14
  • Qualcomm Snapdragon 4 Gen 2 (4nm), Octa core
  • Non-removable Li-Ion 5000 mAh Battery

The Vivo Y300 5G features a 6.67-inch (2400 ×1080 pixels) Full HD+ E4 AMOLED screen with a 120Hz refresh rate. It is powered by the Snapdragon 4 Gen 2 processor paired with 8GB RAM and up to 256GB of internal storage. Running Funtouch OS 14, the device packs a 5000mAh battery with 80W fast charging. For imaging, there's a 50MP dual rear camera system and a 32MP selfie camera.

  • OPPO Reno12 5G
Highlights
  • 6.7 inches 1080 x 2412 pixels, Display
  • 50MP + 8MP + 2MP Triple Primary Camera, 32MP Front Camera
  • Android 14
  • MediaTek Dimensity 7300, Octa Core
  • Non-removable Li-Ion 5000 mAh battery

The OPPO Reno12 has a 6.7-inch full-HD+ (1080x2412 pixels) quad-curved AMOLED display with up to 120Hz refresh rate. The device is powered by the MediaTek Dimensity 7300-Energy SoC with 8GB of RAM and 256GB of onboard storage. There is a 50MP triple rear camera system and a 32MP selfie camera. The Reno12 also packs a 5,000 mAh battery with 80W SuperVOOC charging support.

  • Xiaomi 14 CIVI
Highlights
  • 6.55 inches, 1236 x 2750 pixels Display
  • 50MP + 12MP + 50MP Triple Primary Camera, 32MP + 32MP Dual Front Camera
  • Xiaomi HyperOS
  • Snapdragon 8s Gen 3 SoC, Octa Core
  • Non-removable Li-Ion 4700 mAh battery

The Xiaomi 14 CIVI has a 6.55-inch Quad Curved AMOLED display with a 120Hz refresh rate and a peak brightness of 3,000 nits. The phone is powered by the Snapdragon 8s Gen 3 SoC paired with up to 12GB of LPDDR5X RAM and up to 512GB of UFS 4.0 storage. The device also packs a 4,700 mAh battery with 67W fast charging support. Moreover, it features 50MP triple cameras and a 32MP dual selfie camera system for imaging.

  • Realme GT 6
Highlights
  • 6.78 inches, 1264 x 2780 pixels Display
  • 50MP + 8MP + 50MP Primary Camera, 32MP Front Camera
  • Android 14
  • Qualcomm Snapdragon 8s Gen 3 SoC, Octa core
  • Non removable Li-Ion 5500 mAh battery

The Realme GT 6 has a 6.78-inch full-HD+ (1,264x2,780 pixels) 8T LTPO AMOLED display with up to 120Hz refresh rate. The device is powered by the Snapdragon 8s Gen 3 SoC and packs a 5,500 mAh battery with support for 120W charging. There is a 50MP triple rear camera system and a 32MP selfie camera.

  • Google Pixel 8a
Highlights
  • 6.1 inches, 1080 x 2400 pixels Display
  • 64MP + 13MP Dual lens Primary Camera, 13MP Front Camera
  • Android 14
  • Google Tensor G3 (4 nm)
  • Non removable Li-Ion 4492mAh battery

The Google Pixel 8a comes as a successor to the Pixel 7a. The next-gen A-series phone is powered by the Tensor G3 SoC, paired with 8GB of LPDDR5x RAM and up to 256GB of UFS 3.1 storage. The phone has a 6.1-inch Actua display with a 120Hz refresh rate and Gorilla Glass 3 protection. The device also packs a 4,492 mAh battery with support for 18W wired and 7.5W wireless charging. For imaging, the Google Pixel 8a gets a 64MP dual rear camera setup and a 13MP selfie camera. The phone ships with Android 14 pre-installed and has an IP67 rating for dust and water resistance.

  • Motorola Edge 50 Pro
Highlights
  • 6.7 inches 1220 x 2712 pixels, Display
  • 50MP + 13MP + 10MP Primary Camera, 50MP Front Camera
  • Android 14
  • Qualcomm Snapdragon 7 Gen 3 SoC, Octa Core
  • Non removable Li-Ion 4500 mAh battery

The Motorola Edge 50 Pro is the latest mid-range offering from the brand and comes with a 6.7-inch 1.5K pOLED curved display with a 144Hz refresh rate, 2,000 nits of peak brightness level, and HDR10+ support. The handset is powered by Qualcomm Snapdragon 7 Gen 3 SoC paired with up to 12GB of RAM and 256GB of onboard storage. Running Android 14-based Hello UI, the phone comes with a 50MP selfie camera and a triple-camera setup at the rear panel which houses a 50MP primary sensor with OIS support, a 13MP ultrawide Macro Vision camera and a 10MP telephoto shooter. Further, the Motorola Edge 50 Pro packs a 4,500 mAh battery with 125W wired and 50W wireless fast charging support. It also features an in-display fingerprint sensor and has an official IP68 rating.

  • iQOO Neo9 Pro 5G
Highlights
  • 6.78 inches 1260 x 2800 pixels, Display
  • 50MP + 8MP Dual lens Primary Camera, 16MP Front Camera
  • Android 14
  • Snapdragon 8 Gen 2 SoC, Octa Core
  • Non-Removable 5160mAh Li-Ion battery

The iQOO Neo 9 Pro debuts as the most affordable smartphone with the Snapdragon 8 Gen 2 chipset. Also, the device has a 6.78-inch 1.5K (1,260 x 2,800 pixels) LTPO AMOLED screen with up to 144Hz refresh rate. The iQOO Neo 9 Pro has a VC Cooling system, an official IP54 rating, and packs a 5,160 mAh battery with support for 120W SuperVOOC charging. For optics, the smartphone comes with a 50MP Sony IMX920 sensor with optical image stabilization (OIS) and an 8MP ultra wide-angle camera. Other aspects include Wi-Fi 7, Bluetooth 5.3, GPS, and many more.

Best 8GB RAM Mobile Phones (April 2026) in India

Here is the list of top 5 best 8GB RAM Mobile Phones (April 2026)

Best 8GB RAM Mobile Phones (April 2026) Price in India
Samsung Galaxy S24 FE 42,350
Apple iPhone 16 Pro Max 1,35,900
Vivo V40 Pro 49,999
Vivo Y300 5G 21,999
OPPO Reno12 5G 32,999

Best Cameras New

Rate
You will be notified when price is dropped
You have already selected 4 products
Notifications
Settings
Clear Notifications
Notifications
Use the toggle to switch on notifications
  • Block for 8 hours
  • Block for 12 hours
  • Block for 24 hours
  • Don't block
Gender
Select your Gender
  • Male
  • Female
  • Others
Age
Select your Age Range
  • Under 18
  • 18 to 25
  • 26 to 35
  • 36 to 45
  • 45 to 55
  • 55+
`; } }); moreFromHtml += ` ${!/Mobi|Android/.test(navigator.userAgent) ? `
Prev
Next
` : "" } `; document.querySelector(".oi-carousel-block").innerHTML = moreFromHtml; } }) .catch((err) => { console.log("deeplink loading...", err); }); } if (!lotteryPageAdLoaded) { lotteryPageAdLoaded = true; if (["nagaland lottery", "kerala lottery", "lottery results", "assam lottery", "uae lottery", "punjab lottery", "sikkim lottery", "maharashtra lottery"].includes(document.head.dataset.category_name) && document.head.dataset.monetization == "false") { if (domainmiddle == "goodreturns") { commonFunctions.loadAd( document.getElementById("bottom-sticky"), (atOptions = { key: "ecf07c14b507ef20f5bc289adb3b36bd", format: "iframe", height: 50, width: 320, params: {}, }), "https://engineerfoal.com/ecf07c14b507ef20f5bc289adb3b36bd/invoke.js", ); if (document.getElementById("stickymaincon")) { document.getElementById("stickymaincon").style.display = "block"; } if (document.getElementById("bottomAdWrapper")) { document.getElementById("bottomAdWrapper").style.setProperty("display", "block", "important"); } commonFunctions.loadAd( document.getElementById("are-slot-1"), (atOptions = { key: "5f45a40e971323b65893db3d0e63a14f", format: "iframe", height: 250, width: 300, params: {}, }), "https://engineerfoal.com/5f45a40e971323b65893db3d0e63a14f/invoke.js", ); } if (domainmiddle == "oneindia") { commonFunctions.loadAd( document.getElementById("bottom-sticky"), (atOptions = { key: "89758f0f4693df9548968afdb5a4d902", format: "iframe", height: 50, width: 320, params: {}, }), "https://engineerfoal.com/89758f0f4693df9548968afdb5a4d902/invoke.js", ); if (document.getElementById("stickymaincon")) { document.getElementById("stickymaincon").style.display = "block"; } if (document.getElementById("bottomAdWrapper")) { document.getElementById("bottomAdWrapper").style.setProperty("display", "block", "important"); } commonFunctions.loadAd( document.getElementById("are-slot-1"), (atOptions = { key: "ce146180f15d99aff15253386c46ae5a", format: "iframe", height: 250, width: 300, params: {}, }), "https://engineerfoal.com/ce146180f15d99aff15253386c46ae5a/invoke.js", ); } } } if (!indianSutrasAds) { let adSlots = document.querySelectorAll("[id^='are-slot-']"); indianSutrasAds = true; if (adSlots.length) { adSlots.forEach((element) => { if (window.location.hostname == "hindi.indiansutras.com") { let nativeDiv = document.createElement("div"); nativeDiv.id = "4dcfbc057e2ae8589f9bbd98b591c50a"; const js = document.createElement("script"); js.type = "text/javascript"; js.src = "https://click.nativclick.com/loading/?handle=9699"; js.async = false; // force execution order nativeDiv.appendChild(js); element.appendChild(nativeDiv); } if (window.location.hostname == "tamil.indiansutras.com") { let nativeDiv = document.createElement("div"); nativeDiv.id = "fc2dc7d20994a777cfd5e6de734fe254"; const js = document.createElement("script"); js.type = "text/javascript"; js.src = "https://click.nativclick.com/loading/?handle=9698"; js.async = false; // force execution order nativeDiv.appendChild(js); element.appendChild(nativeDiv); } }); } } if (!designTemplateLoaded && ["tamil.oneindia.com"].includes(window.location.hostname)) { let designLoaded = parseInt(sessionStorage.getItem("design")) || 1; let deeplinkElements = document.querySelectorAll(".oi-recommended-articles-option1, .oi-recommended-articles-option2, .oi-recommended-articles-option3"); if (deeplinkElements.length > 0) { designTemplateLoaded = true; deeplinkElements.forEach((element) => { console.log("design", element); if (!element) return; element.classList.remove("oi-recommended-articles-option1", "oi-recommended-articles-option2", "oi-recommended-articles-option3"); element.classList.add(`oi-recommended-articles-option${designLoaded}`); const updateLink = () => { const link = element.querySelector("a"); if (!link) return false; link.dataset.uparam = `ref_source=${hostParam}-${langParam}&ref_medium=Article-Page&ref_campaign=Deep-Links-DMP-D${designLoaded}`; return true; }; // try updating immediately updateLink(); // observe only if link not yet present const observer = new MutationObserver(() => { if (updateLink()) { observer.disconnect(); } }); observer.observe(element, { childList: true, subtree: true }); }); // calculate next design let nextDesign = (designLoaded % 3) + 1; sessionStorage.setItem("design", nextDesign); } } }); if (window.location.hostname === "www.oneindia.com") { if (document.getElementById("shiPromo")) { function trackImpHealth(impUrl) { fetch(impUrl, { method: "GET", mode: "no-cors", }).catch(function (err) { console.log("Inside Imp error:", err); }); } document.getElementById("shiPromo").addEventListener("click", function (event) { event.preventDefault(); // Prevent default navigation let url = this.href; if (document.getElementById("dynamicanchor")) { document.getElementById("dynamicanchor").remove(); } var link = document.createElement("a"); link.target = "_blank"; link.id = "dynamicanchor"; link.href = url; document.body.appendChild(link); document.getElementById("dynamicanchor").click(); let healthImpUrl = "https://pubads.g.doubleclick.net/gampad/clk?id=6924557502&iu=/1008496/clicktracker-oi-1"; trackImpHealth(healthImpUrl); }); } function checkConsentAndTriggerClarity() { window.googlefc = window.googlefc || {}; window.googlefc.callbackQueue = window.googlefc.callbackQueue || []; window.googlefc.callbackQueue.push({ CONSENT_DATA_READY: () => __tcfapi("addEventListener", 2, (tcData, success) => { if (success) { const hasConsent = tcData.purpose.consents && tcData.purpose.consents[1]; if (hasConsent) { console.log("Consent granted for tracking"); window.clarity("consent"); } else { console.log("Consent not granted for tracking"); } } else { console.log("Unable to retrieve consent status or TC Data is invalid"); } }), }); } } /*---------------------------------------Chartbeat Code Starts--------------------------------------------------------*/ if (["filmibeat", "goodreturns", "oneindia"].includes(domainmiddle)) { chartbeatflag = 0; } if (chartbeatflag == 1) { if (typeof ga_author_name === "undefined") { var ga_author_name = ""; } if (typeof oi_category_name === "undefined") { var oi_category_name = ""; } var parts = window.location.hostname.split("."); var charbeatdomain = window.location.hostname; //parts.slice(-2).join('.'); (function () { var _sf_async_config = (window._sf_async_config = window._sf_async_config || {}); _sf_async_config.uid = 51426; _sf_async_config.domain = charbeatdomain; _sf_async_config.flickerControl = false; _sf_async_config.useCanonical = true; _sf_async_config.useCanonicalDomain = true; _sf_async_config.sections = oi_category_name; _sf_async_config.authors = ga_author_name; function loadChartbeat() { var e = document.createElement("script"); var n = document.getElementsByTagName("script")[0]; e.type = "text/javascript"; e.async = true; e.src = "//static.chartbeat.com/js/chartbeat.js"; n.parentNode.insertBefore(e, n); var script = document.createElement("script"); script.src = "//static.chartbeat.com/js/chartbeat_mab.js"; script.async = true; document.head.appendChild(script); window.removeEventListener("scroll", onScroll); } function onScroll() { loadChartbeat(); } window.addEventListener("scroll", onScroll); })(); } /*---------------------------------------Chartbeat Code Ends--------------------------------------------------------*/ /*---------------------------------------Refinary Code Starts--------------------------------------------------------*/ var refineryObj = { boldsky: "https://tags.refinery89.com/boldskycom.js", careerindia: "https://tags.refinery89.com/careerindiacom-aniview.js", mykhel: "https://tags.refinery89.com/mykhelcom-aniview.js", nativeplanet: "https://tags.refinery89.com/nativeplanetcom-aniview.js", }; var refineryHost = ["boldsky", "careerindia", "nativeplanet"]; var refineryflag = 0; if (refineryHost.includes(domainmiddle)) { function loadrefinery() { var refinery = document.createElement("script"); document.head.appendChild(refinery); refinery.async = true; refinery.src = refineryObj[domainmiddle]; sessionStorage.setItem("refinery_status", 1); } if (refiner_live) { window.addEventListener("scroll", function () { if (refineryflag == 0) { refineryflag = 1; loadrefinery(); } }); } } /*---------------------------------------Refinary Code Ends--------------------------------------------------------*/ /*---------------------------------------Momagic Code Starts--------------------------------------------------------*/ var moMagicHost = ["oneindia", "drivespark", "mykhel", "filmibeat", "goodreturns"]; function trackMoMagic(evnAct, evnLbl) { var curTimeStamp = Math.round(new Date().getTime() / 1000); var extraparam = "×tamp=" + curTimeStamp; if (/Mobi|Android/i.test(navigator.userAgent)) { var triggerDevice = "mobile"; //mobile/desktop } else { var triggerDevice = "desktop"; //mobile/desktop } var img = document.createElement("img"); img.src = "https://" + finalImagePath + "/images/tracker.jpg?tracker=oi-tracker-cms&device=" + triggerDevice + "&type=momagictracker&eventcategory=momagic&eventaction=" + evnAct + "&eventlebel=" + evnLbl + extraparam; img.setAttribute("id", "trackermomagicimage"); img.setAttribute("alt", "Momagic Tracker"); img.setAttribute("width", 1); img.setAttribute("height", 1); img.style.display = "none"; document.body.appendChild(img); } var trackerGA = "G-BGSPW5MRBP"; trueReachLoad = false; var backRef = documentRef; if (domainmiddle === "oneindia" || domainmiddle === "mykhel" || domainmiddle === "filmibeat" || domainmiddle === "drivespark" || domainmiddle === "goodreturns") { history.pushState({ page: "intermediate" }, "", ""); window.addEventListener("popstate", function (event) { if (location.hash === "" && trueReachLoad) { if (typeof showTruereachAd === "function") { if (backRef && backRef != "") { showTruereachAd(backRef); } else { showTruereachAd(); } var evtLbl = "en-oi"; if (langParam != "" && langParam != undefined && langParam != null) { var dynsrc = langParam + "-" + hostParam; evtLbl = dynsrc.toLowerCase(); } trackMoMagic("back-button", evtLbl); } } }); } if (moMagicHost.includes(domainmiddle)) { if (promoArticle == 0) { var evtLbl = "en-oi"; if (langParam != "" && langParam != undefined && langParam != null) { var dynsrc = langParam + "-" + hostParam; evtLbl = dynsrc.toLowerCase(); } if (/Mobi|Android/i.test(navigator.userAgent)) { if (momagicFlag === 1) { if (document.referrer.indexOf("oneindia.com") !== -1 || document.referrer.indexOf("filmibeat.com") !== -1 || document.referrer.indexOf("drivespark.com") !== -1 || document.referrer.indexOf("mykhel.com") !== -1 || document.referrer.indexOf("goodreturns.in") !== -1) { trackMoMagic("referral", evtLbl); } else { var moMagicSession = sessionStorage.getItem("moMagicSession"); if (moMagicSession) { trackMoMagic("referral", evtLbl); } else { sessionStorage.setItem("moMagicSession", 1); } } } } } } /*---------------------------------------Momagic Code Ends--------------------------------------------------------*/ /*---------------------------------------Affinity Matrix/Space Code Starts--------------------------------------------------------*/ function affinityMatrix() { var curhost = location.hostname; var curdom = curhost.split(".").slice(-2).join("."); var o = "script", s = top.document, a = s.createElement(o), m = s.getElementsByTagName(o)[0], d = new Date(), timestamp = "" + d.getDate() + d.getMonth() + d.getHours(); a.async = 1; a.src = "https://cdn4-hbs.affinitymatrix.com/hvrcnf/" + curdom + "/" + timestamp + "/index?t=" + timestamp; m?.parentNode?.insertBefore(a, m); } if ("goodreturns" == domainmiddle) { if (/Mobi|Android/i.test(navigator.userAgent)) { affMatrix = 1; } } if (affMatrix == 1) { if (/Mobi|Android/i.test(navigator.userAgent)) { if (trackpagetype != "home") { var affinityInserted = false; window.addEventListener("scroll", function () { if (!affinityInserted) { affinityMatrix(); affinityInserted = true; } }); } } else { if (trackpagetype != "home") { var affinityInserted = false; window.addEventListener("scroll", function () { if (!affinityInserted) { affinityMatrix(); affinityInserted = true; } }); } } } /*---------------------------------------Affinity Matrix/Space Code Ends--------------------------------------------------------*/ /*---------------------------------------Vidverto /Reward Video Code Starts--------------------------------------------------------*/ function loadVidvertoScript(elementId, mountId) { if (vidvertoFlag == 1) { window.addEventListener("scroll", function loadScriptOnScroll() { var script = document.getElementById(elementId); if (!script) { var a = document.createElement("script"); a.id = elementId; a.src = "https://ad.vidverto.io/vidverto/js/aries/v1/invocation.js"; a.setAttribute("fetchpriority", "high"); var r = window.top; document.head.appendChild(a); if (window.self !== window.top) { window.frameElement.style.cssText = "width:0px!important;height:0px!important;"; } r.aries = r.aries || {}; r.aries.v1 = r.aries.v1 || { commands: [] }; var c = r.aries.v1; c.commands.push(function () { var d = document.getElementById(elementId); d.setAttribute("id", d.getAttribute("id") + new Date().getTime()); var t = window.frameElement || d; c.mount(mountId, t, { width: 1, height: 1 }); }); window.removeEventListener("scroll", loadScriptOnScroll); } }); } } /*if (domainmiddle === 'gizbot') { loadVidvertoScript('_vidverto-6d7f83b216033802179a1489c7ef0112', '12320'); */ /*---------------------------------------Vidverto/Reward Video Code Ends--------------------------------------------------------*/ /*---------------------------------------Aniview Code Starts--------------------------------------------------------*/ /*if(document.querySelector('#are-slot-3')){ document.querySelector('#are-slot-3').classList.remove('oiad', 'oi-axt', 'oiadv', 'dynamic-slot'); }*/ /*---------------------------------------Aniview Code Ends--------------------------------------------------------*/ /*---------------------------------------Clarity Code Ends--------------------------------------------------------*/ // Assuming domainmiddle and langParam are dynamically determined if (!domainmiddle || !langParam || domainmiddle.trim() === "" || langParam.trim() === "") { console.error("Error: domainmiddle or langParam is undefined, null, or blank. Script will not execute."); } else { var claritylangParam = langParam.toLowerCase(); let clarityFlag = 0; let clarityVersion = "1.0.3"; // Check if Clarity has already been triggered in this session if (!sessionStorage.getItem("clarityLoaded")) { if (["oneindia", "filmibeat", "goodreturns"].includes(domainmiddle)) { clarityFlag = 1; } window.addEventListener("scroll", function () { if (clarityFlag === 0) { clarityFlag = 1; fetch("/common/clarity-tracking.json?v=" + clarityVersion) .then((response) => response.json()) .then((data) => { const clarityId = data[domainmiddle]?.[claritylangParam]; if (!clarityId) { console.error("Clarity ID not found for the given domain and language!"); return; } (function (c, l, a, r, i, t, y) { c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments); }; t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i; y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y); })(window, document, "clarity", "script", clarityId); if (window.location.hostname === "www.oneindia.com") { if (window.googletag && googletag.apiReady) { checkConsentAndTriggerClarity(); } } // Mark Clarity as loaded in this session sessionStorage.setItem("clarityLoaded", "true"); }) .catch((error) => { console.error("Error loading the clarify-tracking.json file:", error); }); } }); } } /*---------------------------------------Clarity Code Ends--------------------------------------------------------*/ /*---------------------------------------VOX/Adsense Backfil Code Starts--------------------------------------------------------*/ if (domainmiddle == "mykhel") { if (document.querySelector(".oi-footer-bottom-ad-close")) { document.querySelector(".oi-footer-bottom-ad-close").style.display = "none"; } } var adsenseObj = { oneindia: 6500213837, boldsky: 5451350884, gizbot: 8951063454, drivespark: 2314299074, filmibeat: 5203390138, goodreturns: 3315593397, careerindia: 2385655101, mykhel: 2194083414, nativeplanet: 7446410097 }; var adsenseSlot = adsenseObj[domainmiddle]; var inImageCssWeb = ""; var inImageCssMobi = ""; var inImageHtmlWeb = ''; var inImageHtmlMobi = ''; var finalHtmlCss = ""; if (/Mobi|Android/i.test(navigator.userAgent)) { finalHtmlCss = inImageCssMobi + inImageHtmlMobi; } else { finalHtmlCss = inImageCssWeb + inImageHtmlWeb; } function loadAdgInImgAd() { var adginimgdiv = document.createElement("div"); adginimgdiv.id = "adgebraInImgAd"; adginimgdiv.style.minWidth = "600px"; adginimgdiv.style.minHeight = "90px"; adginimgdiv.style.position = "absolute"; adginimgdiv.style.bottom = "0"; var inImgPlacment = document.querySelector(".big_center_img") || document.querySelector(".big-center-img"); if (inImgPlacment) { inImgPlacment.appendChild(adginimgdiv); } // Define and display the fallback ad in the new element googletag.cmd.push(function () { var adgslot = googletag.defineSlot("/1008496/popup-thats-cricket-out-of-page", [1, 1], "adgebraInImgAd").addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().enableAsyncRendering(); googletag.enableServices(); googletag.display("adgebraInImgAd"); googletag.pubads().refresh([adgslot]); }); } function loadAdgInImgAdMobi() { var adginimgdiv = document.createElement("div"); adginimgdiv.id = "adgebraInImgAd"; adginimgdiv.style.minWidth = "320px"; adginimgdiv.style.minHeight = "50px"; adginimgdiv.style.position = "absolute"; adginimgdiv.style.bottom = "0"; var inImgPlacment = document.querySelector(".big-center-img") || document.querySelector(".big_center_img"); if (inImgPlacment) { inImgPlacment.appendChild(adginimgdiv); } // Define and display the fallback ad in the new element googletag.cmd.push(function () { var adgslot = googletag.defineSlot("/1008496/popup-thats-cricket-out-of-page", [1, 1], "adgebraInImgAd").addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().enableAsyncRendering(); googletag.enableServices(); googletag.display("adgebraInImgAd"); googletag.pubads().refresh([adgslot]); }); } var backfillWidgets = { voxWidget: function (idx, elem) { if (liteflag == 0) { console.log("adsense/vox", document.getElementById("oi-vox")); if (document.getElementById("oi-vox")) { var sspflag = 0; if (sspflag == 0) { console.log("adsense/vox", sspflag); if (typeof window._tx === "undefined") { var s = document.createElement("script"); s.type = "text/javascript"; s.async = true; s.src = "https://st.hbrd.io/ssp.js?t=" + new Date().getTime(); (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(s); } window._tx = window._tx || {}; window._tx.cmds = window._tx.cmds || []; console.log("adsense/vox", window._tx, window._tx.cmds); window._tx.cmds.push(function () { window._tx.init({ onSuccessInImageLoad: function (data) { console.log("adsense/vox", "vox"); console.log("onSuccessInImageLoad", data); }, onFailInImageLoad: function (data) { console.log("adsense/vox", "addsense"); if (backfillorder == 2) { backfillWidgets.adsenseWidget(finalHtmlCss, 2, idx, elem); /*if (domainmiddle === 'oneindia') { if (/Mobi|Android/i.test(navigator.userAgent)) { backfillWidgets.adsenseWidget(finalHtmlCss,2,idx,elem); }else{ loadAdgInImgAd(); } }*/ } // console.log("onFailInImageLoad", data); }, }); }); } /* window.addEventListener( "scroll", function () { }, false ); */ } } }, adsenseWidget: function (dynamicHtmlCSs, flg, idx, elem) { console.log("adsense/vox", dynamicHtmlCSs, flg, idx, elem); var scriptElement = document.createElement("script"); scriptElement.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6601380052549923"; scriptElement.async = true; scriptElement.crossOrigin = "anonymous"; document.head.appendChild(scriptElement); var adsenseDiv = document.createElement("div"); adsenseDiv.id = "oiInImg"; adsenseDiv.classList.add("oiInImg"); adsenseDiv.innerHTML = dynamicHtmlCSs; elem.insertAdjacentElement("afterend", adsenseDiv); (adsbygoogle = window.adsbygoogle || []).push({}); var adsenseInt = setInterval(function () { var oiInImgElems = document.querySelectorAll(".oiInImg"); if (oiInImgElems.length > 0) { var oiInImgWrapperElems = document.querySelectorAll(".oiInImg ins"); oiInImgWrapperElems.forEach(function (wrapperElem) { var filledStatus = wrapperElem.getAttribute("data-ad-status"); if (filledStatus === "filled") { oiInImgElems.forEach(function (imgElem) { imgElem.style.display = "block"; }); var imgCloseBtnElem = document.querySelector("#img-close-btn"); imgCloseBtnElem.style.opacity = "1"; imgCloseBtnElem.addEventListener("click", function () { oiInImgElems.forEach(function (imgElem) { imgElem.innerHTML = ""; }); }); var imgCloseBtns = document.querySelectorAll(".img-close-btn"); imgCloseBtns.forEach(function (imgCloseBtn) { imgCloseBtn.style.opacity = "1"; imgCloseBtn.addEventListener("click", function () { oiInImgElems.forEach(function (imgElem) { imgElem.innerHTML = ""; }); }); }); clearInterval(adsenseInt); } else if (filledStatus === "unfilled") { oiInImgElems.forEach(function (imgElem) { imgElem.style.display = "none"; }); if (backfillorder == 1 && flg == 1) { backfillWidgets.voxWidget(idx, elem); } clearInterval(adsenseInt); } }); } }, 500); }, }; if (host.indexOf("bengali") > -1) { backfillorder = 2; } var voxloadflag = 0; var voxFlag = 1; var sspflagload = 0; var gccflag = 0; var gccflagin = 0; window.addEventListener("scroll", function () { if (sspflagload == 0) { sspflagload = 1; var con_code = ""; var city_code = ""; var gcccountryCodes = ["BH", "KW", "OM", "QA", "SA", "AE"]; var gcccountryCodesInd = ["IN"]; var countryInt; countryInt = setInterval(function () { if (document.body) { var gapiDetails = localStorage.getItem("userlocation"); if (gapiDetails) { clearInterval(countryInt); var tmpgapijson = JSON.stringify(gapiDetails); var jdata = gapiDetails; jdata = JSON.parse(jdata); con_code = jdata.country_code; city_code = jdata.city; if (gcccountryCodes.includes(con_code)) { //if(city_code=='Bhubaneswar'){ gccflag = 112345; //} } if (!gcccountryCodesInd.includes(con_code)) { gccflagin = 1; backfillorder = 1; } if (document.querySelector(".image_listical")) { var imageelem = document.querySelectorAll(".image_listical"); var imglen = imageelem.length; if (imglen > 1) { voxloadflag = 1; } if (imglen > 0) { for (let g = 0; g < imglen; g++) { if (g == 0) { imageelem[0].setAttribute("data-adgdisplay", false); if (backfillorder == 1 || backfillorder == 3) { backfillWidgets.adsenseWidget(finalHtmlCss, 1, g, imageelem[0]); } else if (backfillorder == 2 || backfillorder == 4) { if (gccflag == 1) { } else { console.log("adsense/vox", g, imglen); backfillWidgets.voxWidget(g, imageelem[g]); } } } else { if (g > 0) { if (domainmiddle == "boldsky" || domainmiddle == "goodreturns" || domainmiddle == "oneindia" || domainmiddle == "filmibeat") { if (g % 2 == 0) { imageelem[g].setAttribute("data-adgdisplay", false); if (backfillorder == 2 || backfillorder == 4) { if (gccflag == 1) { } else { if (domainmiddle == "goodreturns") { backfillWidgets.adsenseWidget(finalHtmlCss, 1, g, imageelem[0]); } else { backfillWidgets.voxWidget(g, imageelem[g]); } } } } } else { if (g % 2 == 1) { imageelem[g].setAttribute("data-adgdisplay", false); if (backfillorder == 2 || backfillorder == 4) { if (gccflag == 1) { } else { if (domainmiddle == "goodreturns") { backfillWidgets.adsenseWidget(finalHtmlCss, 1, g, imageelem[0]); } else { backfillWidgets.voxWidget(g, imageelem[g]); } } } } } } } } } } } } }, 1000); setTimeout(function () { clearInterval(countryInt); }, 10000); } }); if (document.querySelector(".myimg")) { var imageelem = document.querySelectorAll(".myimg"); var imglen = imageelem.length; if (imglen > 0) { for (g = 0; g < imglen; g++) { if (g == 0) { imageelem[0].setAttribute("data-adgdisplay", false); if (backfillorder == 1) { backfillWidgets.adsenseWidget(finalHtmlCss, 2, g, imageelem[g]); } else if (backfillorder == 2) { backfillWidgets.voxWidget(g, imageelem[g]); } } else if (g == 2) { imageelem[2].setAttribute("data-adgdisplay", false); backfillWidgets.adsenseWidget(finalHtmlCss, 2, g, imageelem[g]); } else if (g == 4) { imageelem[2].setAttribute("data-adgdisplay", false); backfillWidgets.adsenseWidget(finalHtmlCss, 2, g, imageelem[g]); } } } } /*---------------------------------------VOX/Adsense Backfil Code Ends--------------------------------------------------------*/ /*---------------------------------------Adsense in are-slot-4----------------------------------------------------------------*/ function executeAdSenseOnScroll() { const targetDiv = document.getElementById("are-slot-5"); if (!targetDiv) { console.error("Ad container div not found"); return; } targetDiv.innerHTML = ""; // Clear the content first const adScript = document.createElement("script"); adScript.async = true; adScript.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6601380052549923"; adScript.setAttribute("crossorigin", "anonymous"); document.head.appendChild(adScript); const adIns = document.createElement("ins"); adIns.className = "adsbygoogle"; adIns.style.display = "block"; adIns.setAttribute("data-ad-client", "ca-pub-6601380052549923"); adIns.setAttribute("data-ad-slot", "3671027678"); adIns.setAttribute("data-ad-format", "auto"); adIns.setAttribute("data-full-width-responsive", "true"); targetDiv.appendChild(adIns); adScript.onload = function () { try { (adsbygoogle = window.adsbygoogle || []).push({}); } catch (e) { console.error("AdSense initialization error:", e); } }; } // Add scroll event listener to execute AdSense code /*if(domainmiddle=='filmibeat' || domainmiddle=='mykhel' || domainmiddle=='drivespark' || domainmiddle=='gizbot' || domainmiddle=='nativeplanet' || domainmiddle=='boldsky'){ if (/Mobi|Android/i.test(navigator.userAgent)) { var adsenseFlag=0; window.addEventListener('scroll', () => { var targetContainerId = 'are-slot-5'; const targetDiv = document.getElementById('are-slot-5'); if (targetDiv) { if(adsenseFlag==0){ adsenseFlag=1; if(targetContainerId=='are-slot-5'){ targetDiv.innerHTML=''; document.getElementById(targetContainerId).classList.remove('dynamic-slot'); loadAdScriptCommon(); (function(g,o){g[o]=g[o]||function(){(g[o]['q']=g[o]['q']||[]).push(arguments)},g[o]['t']=1*new Date})(window,'_googCsa'); afsAdCallCommon(targetContainerId); } } } }); } }*/ if ([].includes(window.location.hostname)) { if (googletag.apiReady) { googletag.cmd.push(function () { const key = "topic"; // full domain + path let newValue = window.location.hostname + window.location.pathname; // get last part of the pathname (slug or ID) let secondPathName = window.location.pathname.split("/").at(-1) || ""; // Try to extract numeric article ID let articleId = null; let match = secondPathName.match(/(\d+)(?=\.html$|$)/); if (match) { articleId = match[1]; } // ---- Helper: sanitize + trim slug ---- function safeSlug(str) { // remove extension like .html str = str.replace(/\.[^/.]+$/, ""); // keep only letters, numbers, dash, underscore, dot str = str.replace(/[^a-zA-Z0-9._-]/g, ""); // truncate to 40 chars (GAM limit) return str.substring(0, 40) || "na"; } // Fallback: generate safe truncated slug if no numeric ID if (!articleId) { articleId = safeSlug(secondPathName); } // clear any previous targeting googletag.pubads().clearTargeting("host"); googletag.pubads().clearTargeting("curl"); // set targeting googletag.setConfig({ targeting: { prpm: [articleId], // safe 40-char slug/ID [key]: [newValue], }, }); // log what’s being set const targeting = {}; googletag .pubads() .getTargetingKeys() .forEach((key) => { targeting[key] = googletag.pubads().getTargeting(key); }); console.log("Global targeting:", targeting); }); } } function dynamicPerformance(divid) { if (window.googletag && googletag.apiReady && typeof pbjs != "undefined") { var PREBID_TIMEOUT = 1200; var FAILSAFE_TIMEOUT = 3000; googletag.cmd.push(function () { googletag.pubads().disableInitialLoad(); }); var pbjsrss = pbjs || {}; pbjsrss.que = pbjs.que || []; var target_words_rss = []; var getUrlDetailsRss = { cleanArray: function (item) { var tempArr = []; for (var i = 0; i < item.length; i++) { if (item[i] !== undefined && item[i] != "") { tempArr.push(item[i]); } } return tempArr; }, createArrayFromUrl: function () { target_words_rss = target_words_rss.concat(window.location.hostname); var url_host = window.location.hostname.split("."); target_words_rss = target_words_rss.concat(url_host); var url_path = window.location.pathname.replace(".html", "").split("/"); target_words_rss = target_words_rss.concat(url_path); var pathArrLen = url_path.length; var subUrlPath = url_path[pathArrLen - 1].split("-"); target_words_rss = target_words_rss.concat(subUrlPath); if (["www.oneindia.com", "tamil.oneindia.com"].includes(window.location.hostname)) { let urlWithoutHttps = window.location.href.replace("https://", ""); target_words_rss = target_words_rss.concat(urlWithoutHttps); } console.log("target_words_rss_1", target_words_rss); target_words_rss = getUrlDetailsRss.cleanArray(target_words_rss); console.log("target_words_rss_2", target_words_rss); }, }; getUrlDetailsRss.createArrayFromUrl(); try { googletag.cmd.push(function () { slot[850] = googletag.defineSlot("/1008496/Performance", [[300, 250], [336, 280], [320, 480], [320, 250], [320, 50], "fluid", [320, 100]], divid).addService(googletag.pubads()); googletag.pubads().setTargeting("host", window.location.hostname); googletag.pubads().setTargeting("curl", window.location.href); googletag.pubads().setTargeting("topic", target_words_rss); if (domainmiddle == "oneindia") { if (langParam == "or") { googletag.pubads().setTargeting("domain", "www.oneindia.com"); } else { googletag.pubads().setTargeting("domain", window.location.hostname); } } else if (domainmiddle == "goodreturns") { var domHost = domainmiddle + ".in"; googletag.pubads().setTargeting("domain", domHost); } else { var domHost = domainmiddle + ".com"; googletag.pubads().setTargeting("domain", domHost); } googletag.pubads().setTargeting("lang", langParam); googletag.pubads().enableSingleRequest(); googletag.enableServices(); googletag.display(divid); googletag.pubads().refresh([slot[850]]); }); } catch (err) { console.log("Home Page Ad : " + err); } } } /* if (domainmiddle == "filmibeat" || domainmiddle == "mykhel" || domainmiddle == "drivespark" || domainmiddle == "gizbot" || domainmiddle == "nativeplanet" || domainmiddle == "boldsky") { if (/Mobi|Android/i.test(navigator.userAgent)) { var adsenseFlag=0; window.addEventListener('scroll', () => { var targetContainerId = 'are-slot-5'; const targetDiv = document.getElementById('are-slot-5'); if (targetDiv) { if(adsenseFlag==0){ adsenseFlag=1; targetDiv.classList.remove('dynamic-slot'); dynamicPerformance('are-slot-5'); } } }); } } */ /*---------------------------------------Adsense in are-slot-4----------------------------------------------------------------*/ -->
We use cookies to ensure that we give you the best experience on our website. This includes cookies from third party social media websites and ad networks. Such third party cookies may track your use on Oneindia sites for better rendering. Our partners use cookies to ensure we show you advertising that is relevant to you. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on Oneindia website. However, you can change your cookie settings at any time. Learn more