top 10 Xiaomi mobiles (April 2026) in India

  हिन्दी में पढ़ें
  • 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.

  • Xiaomi 14
Highlights
  • 6.36 inches 1200 x 2670 pixels Display
  • 50MP + 50MP + 50MP Triple Primary Camera, 32MP Front Camera
  • Xiaomi Hyper OS
  • Qualcomm SM8650-AB Snapdragon 8 Gen 3 (4 nm), Octa core
  • Non removable Li-Ion 4610 mAh battery

The Xiaomi 14 goes official with Qualcomm's latest Snapdragon 8 Gen 3 SoC, Leica optics, 90W HyperCharge wired charging, and much more. Starting with the price, the flagship Xiaomi 14 price in India has been set at Rs. 69,999 for the 12GB + 512GB variant. The phone offers a 6.36-inch LTPO AMOLED (1,200x2,670 pixels) display with a peak brightness of 3,000 nits and an adaptive refresh rate of up to 120Hz. The display also features a punch-hole cutout to house the 32MP selfie camera. At the rear panel, the Xiaomi 14 sports a 50MP main lens with optical image stabilization (OIS) and 23mm equivalent focal length, a 50MP 75mm floating telephoto camera with OIS support, and a 50MP ultra-wide angle camera with a 115-degree field of view. The rear camera is also capable of recording 4K video at up to 60fps or 8K video at up to 30fps. The selfie camera supports 4K video recording. The phone runs Android 14-based HyperOS with Xiaomi promising four major OS updates and five years of regular security updates. The Xiaomi 14 packs a 4,610 mAh battery with 90W wired and 50W wireless fast charging support. The device also features stereo speakers with Dolby Atmos support. It has an IP68 rating for dust and water resistance.

  • Xiaomi 14 Ultra
Highlights
  • 6.73 inches 1440 x 3200 pixels Display
  • 50MP + 50MP + 50MP + 50MP Quad Primary Camera, 32MP Front Camera
  • Xiaomi HyperOS
  • Qualcomm Snapdragon 8, Octa core
  • Non removable Li-Ion 5000 mAh battery

The Xiaomi 14 Ultra has made its debut in the country alongside the Xiaomi 14. The flagship phone features a 6.73-inch LTPO AMOLED micro-curved display with a resolution of 3,200 x 1,440 pixels, a 120Hz refresh rate, and a peak brightness of 3,000nits. The device gets its power from the Snapdragon 8 Gen 3 SoC paired with 16GB RAM and 512GB storage. The phone runs on Android 14 OS with the company's custom HyperOS interface. There is a quad camera setup at the rear panel of the Xiaomi 14 Ultra. It includes a 50MP Sony LYT900 primary sensor with optical image stabilization (OIS) and two 50MP Sony IMX858 sensors with unique optical zoom capabilities of 3.2x and 5x. The fourth 50MP ultra-wide-angle lens promises to enhance the device's photography capabilities. For selfies, the Xiaomi 14 Ultra has a 32MP front camera. The device also includes a 5,300 mAh battery with 90W wired, 80W wireless, and 10W reverse wireless charging capabilities.

  • Redmi A4 5G
Highlights
  • 6.88 inches 720 x 1640 pixels Display
  • 50MP + AI Dual lens Primary Camera, 5MP Front Camera
  • Android 14
  • Qualcomm Snapdragon 4s Gen 2 (4 nm), Octa Core
  • Non-removable Li-ion 5160 mAh battery

The Redmi A4 5G has a 6.88-inch HD+ (720x1640 pixels) LCD screen with a 120Hz refresh rate. Powered by the Snapdragon 4s Gen 2, the device packs a 5,160mAh battery with 18W charging. The Redmi A4 5G also offers a 50MP dual rear camera system and a 5MP selfie camera.

  • Redmi 13 5G
Highlights
  • 6.79 inches 1080 x 2460 pixels, Display
  • 108MP + 2MP Dual Primary Camera, 13MP Front Camera
  • Xiaomi HyperOS (Android 14)
  • Snapdragon 4 Gen 2 AE, Octa Core
  • Non-removable Li-Ion 5030 mAh battery

The Redmi 13 has a 6.79-inch Full-HD+ (1,080x2,400 pixels) IPS LCD display with a 120Hz refresh rate. The device is powered by the Snapdragon 4 Gen 2 AE SoC paired with up to 8GB LPDDR4X RAM and 128GB UFS 2.2 internal storage. For imaging, there is a 108MP dual rear camera system and a 16MP selfie camera. It also packs a 5,030 mAh battery with 33W fast charging.

  • Redmi Note 13 Pro Plus 5G
Highlights
  • 6.67 inches 1220 x 2712 pixels, Display
  • 200MP + 8MP + 2MP Triple Primary Camera, 16MP Front Camera
  • Android 13
  • MediaTek Dimensity 7200-Ultra (4nm), Octa Core
  • Non-removable Li-ion 5000 mAh battery

The Xiaomi Redmi Note 13 Pro Plus 5G features a 6.67-inch 120Hz OLED display with Dolby Vision and HDR10+ certification. At its core is a 4nm MediaTek Dimensity 7200 Ultra coupled with either 8GB or 12GB of RAM (depending on the market region) and 256GB or 512GB of Storage. There is a triple-camera array on the back: a 200MP primary camera, an 8MP ultrawide camera and a 2MP f/2.4 macro camera. There is a single 16MP selfie shooter upfront. A 5000 mAh Li-Po battery runs the show and supports a whopping 120W wired quick charging.

  • Redmi Note 13 Pro 5G
Highlights
  • 6.67 inches 1220 x 2712 pixels, Display
  • 200MP + 8MP + 2MP Triple Primary Camera, 16MP Front Camera
  • Android 13
  • Snapdragon 7s Gen 2 (4nm), Octa Core
  • Non-removable Li-ion 5100 mAh battery

The Redmi Note 13 Pro 5G features a 6.67-inch 120Hz OLED display with Dolby Vision and HDR10+ certification. At its core is a 4nm Snapdragon 7s Gen 2 coupled with either 8GB or 12GB of RAM (depending on the market region) and 128GB or 256GB of Storage. There is a triple-camera array on the back: a 200MP primary camera, an 8MP ultrawide camera and a 2MP f/2.4 macro camera. There is a single 16MP selfie shooter upfront. A 5100 mAh Li-Po battery runs the show and supports a whopping 67W wired fast charging.

  • Redmi 13C 5G
Highlights
  • 128GB, 256GB Storage / 4GB, 6GB, 8GB RAM
  • 50MP AI Primary Camera, 5MP Front Camera
  • 6.74 inches 1080 x 2400 pixels, Display
  • MediaTek Dimensity 6100+ (6nm), Octa Core
  • Non-removable Li-Ion 5000 mAh battery

The Redmi 13C 5G is a low-cost smartphone that runs on MIUI 14. It has a 6.74-inch IPS LCD display with a resolution of 720 x 1600 pixels. It is powered by the MediaTek Dimensity 6100+ (6nm) chipset and has up to 4GB of RAM and 128GB of eMMC 5.1 storage. The Redmi 13C has a dual rear camera setup with a 50MP main sensor and a AI lens camera, as well as a 5MP selfie camera. The phone also has a 5000mAh battery with 18W wired charging, a microSD slot, and a rear-mounted fingerprint scanner.

  • Redmi A3
Highlights
  • 6.71 inches 720 x 1650 pixels Display
  • 8MP + AI Dual lens Primary Camera, 5MP Front Camera
  • Android 13
  • Mediatek Helio G36, Octa Core
  • Non-removable Li-ion 5000 mAh battery

The Redmi A3 boasts a large 6.71-inch display with a smooth 90Hz refresh rate, offering a stunning visual experience. Its 8MP + AI dual-lens primary camera ensures you capture every moment in great detail, while the 5MP front camera is perfect for selfies. Powered by Android 13 and the Mediatek Helio G36 processor, it delivers seamless performance. With options for 3GB, 4GB, or 6GB of RAM and 64GB or 128GB of storage, you can choose the configuration that suits your needs. The device is available in Olive Green, Midnight Black, or Lake Blue colors, and its non-removable Li-ion 5000 mAh battery keeps you powered up all day.

  • Redmi Note 13 5G
Highlights
  • 6.67 inches 1080 x 2400 pixels, Display
  • 108MP + 8MP + 2MP Triple Primary Camera, 16MP Front Camera
  • Android 13
  • MediaTek Dimensity 6080 (6nm), Octa Core
  • Non-removable Li-ion 5000 mAh battery

The Redmi Note 13 5G features a 6.67-inch, 120Hz, AMOLED display. At its core is a 6nm MediaTek Dimensity 6080 coupled with either 6GB, 8GB, or 12GB of RAM, 128GB or 256GB of Storage (depending on storage configurations). There is a triple-camera array on the back: a 108MP f/1.75 main camera, an 8MP f/2.2 ultrawide camera, and a 2MP f/2.4 macro camera. The front houses a 16MP selfie shooter. Power is provided by a 5,000 mAh Li-Po battery that supports 33W wired fast charging. The device comes in three colors: Arctic White, Stealth Black and Prism Gold.

List of Top 10 Xiaomi Mobiles in India

Top 10 Xiaomi Mobiles Price in India
Xiaomi 14 CIVI 42,999
Xiaomi 14 43,999
Xiaomi 14 Ultra 37,999
Redmi A4 5G 8,499
Redmi 13 5G 12,499
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