\
\
Track funds on the go \ 4.5 \
\
\ \ \ ', afterLoading: function() { var openInAppBody = document.querySelector('body'); var openInAppContainer = document.querySelector('#open_in_app_widget_type_1'); var heightOuter = document.querySelector('.mfOuter'); openInAppBody.classList.add("open-inApp-widget"); function openInAppOnWindowScroll() { window.addEventListener("scroll", debounce(function() { var scroll = $(window).scrollTop(); if (scroll > 56) { openInAppBody.classList.remove('open-inApp-widget'); } else { openInAppBody.classList.add('open-inApp-widget'); } }, 200)) } document.querySelector(".inApp-close").addEventListener("click", function() { openInAppBody.classList.remove('open-inApp-widget'); openInAppContainer.classList.add('hide-openInApp'); }); openInAppOnWindowScroll(); }, bindEvent: function() { }, placeholder: { position: "beforebegin", // accepted value : "afterbegin" "afterend" "beforebegin" "beforeend" selector: "header" }, trigger: { evnt: "load", elm: "window", }, }, type_2: { html: '
\
\ \ \ \ 4.5 \
\
\
\
\
This page looks better in the app \
\
\
\
\
\ ', afterLoading: function() { var widgetElement = document.querySelector('#open_in_app_widget_type_2'); document.querySelector('#backdrop').addEventListener('click', function(e) { if (e.currentTarget.classList.contains('open-inApp-backdrop') && !widgetElement.classList.contains('hide-openInApp') && !widgetElement.contains(e.target)) { widgetElement.classList.add('hide-openInApp'); e.currentTarget.classList.remove("open-inApp-backdrop"); document.querySelector('body').classList.remove('no-scroll'); } }); // document.querySelector('.open-inApp-backdrop').onclick = function(e) { // var openInAppBackdrop = document.querySelector('.open-inApp-backdrop'); // var ignoreClickOnOpenAppElem = document.querySelector('#open_in_app_widget_type_3'); // if(e.target != document.querySelector('#open_in_app_widget_3')) { // ignoreClickOnOpenAppElem.classList.add('hide-openInApp'); // openInAppBackdrop.classList.remove("open-inApp-backdrop"); // } // } }, bindEvent: function() { }, placeholder: { position: "beforeend", // accepted value : "afterbegin" "afterend" "beforebegin" "beforeend" selector: "body" }, trigger: { evnt: "load", elm: "window", }, }, type_3: { html: '
\
\
\
\ \ \ \
For personalised recommendations, expert tips, & latest updates \
\
\
\
\
\
', afterLoading: function() { var productType = window.location.pathname.split('/')[1].replace('-', ' ') || 'Home'; var OpenInAppWidget = { openInAppContainer: document.querySelector("#open_in_app_widget_type_3"), hide: function() { this.openInAppContainer.classList.add("hide-openInApp"); this.openInAppContainer.classList.remove('show-openInApp'); }, show: function() { this.openInAppContainer.classList.add("show-openInApp"); this.openInAppContainer.classList.remove('hide-openInApp'); }, dismissed: false } OpenInAppWidget.hide(); // Show Widget when Page Scrolled 70% var scrolledHight = $(window).height(); window.addEventListener("scroll", debounce(function() { if (document.documentElement.scrollTop < (scrolledHight * 0.7)) { OpenInAppWidget.hide(); } else { if (!OpenInAppWidget.dismissed) { OpenInAppWidget.show(); customGaEvents("Download", "Download - Widget - Type_3 - View", document.querySelector('#primary_cta_type_3').textContent + ' - ' + document.querySelector('#secondary_cta_type_3').textContent + ' - ' + productType); } } }, 200)) // Hide Widget On Remind Me later Click document.querySelector("#secondary_cta_type_3").addEventListener("click", function() { OpenInAppWidget.dismissed = true; OpenInAppWidget.hide(); }); // Show Fixed Button Open in App on Upscroll var openInAppCta = document.querySelector('.open_inApp_onUpScroll'); var lastScroll = $(window).scrollTop(); window.addEventListener('scroll', function(e) { var currentScroll = $(window).scrollTop(); if (currentScroll > lastScroll + 5) { openInAppCta.classList.remove('show-openInApp'); } else if (currentScroll < lastScroll - 5 && OpenInAppWidget.dismissed) { openInAppCta.classList.add('show-openInApp'); customGaEvents("Download", "Download - Widget - Type_3 - View", document.querySelector('#widget_openInApp_action').textContent); } // Update the old value lastScroll = currentScroll; }); }, bindEvent: function() { }, placeholder: { position: "beforeend", // accepted value : "afterbegin" "afterend" "beforebegin" "beforeend" selector: "body" }, trigger: { evnt: "load", elm: "window", }, } } // slice and reverse is to maintain the array ordering precedence. // Second way is to put only unique regex in config, such that // one page will have only one matching widget. config.slice().reverse().forEach(function(item) { if (document.querySelector('#open_in_app_widget_' + item.template) || !isMobileDevice()) { return; } var loc = window.location.pathname; // Get Product Name var productType = window.location.pathname.split('/')[1].replace('-', ' ') || 'Home'; if (typeof item.urlRegex == "undefined" || loc.match(item.urlRegex)) { var selectedTemplate = template[item.template]; // Creating HTML var wrapper = document.createElement('div'); wrapper.innerHTML = selectedTemplate.html; // Heading Change if (item.heading && wrapper.querySelector('#widget_heading_' + item.template)) { wrapper.querySelector('#widget_heading_' + item.template).textContent = item.heading; } // Primary CTA Change. The if condition are as per precedence if (window.mobAppRedirectLink && !(item.primaryCta && item.primaryCta.href)) { wrapper.querySelector('#primary_cta_' + item.template).href = window.mobAppRedirectLink; } if (item.primaryCta && item.primaryCta.href) { wrapper.querySelector('#primary_cta_' + item.template).href = item.primaryCta.href; } if (item.primaryCta && item.primaryCta.text) { wrapper.querySelector('#primary_cta_' + item.template).textContent = item.primaryCta.text; } // Secondary CTA Change // Bind events var placeholder = item.placeholder || selectedTemplate.placeholder; var trigger = item.trigger || selectedTemplate.trigger; if (trigger.elm == 'window' && trigger.evnt == 'load') { // Inject and Show directly the widget as this function is running on load event. document.querySelector(placeholder.selector).insertAdjacentHTML( placeholder.position, wrapper.innerHTML ) } if (trigger.elm != 'window' && trigger.evnt.match('click')) { var elements = document.querySelectorAll(item.trigger.elm); wrapper.firstChild.classList.add('hide-openInApp'); $(document).on(trigger.evnt, item.trigger.elm, function(event) { if ($(event.target).closest(item.trigger.exclude).length) { return; } event.preventDefault(); document.querySelector('#backdrop').classList.add("open-inApp-backdrop"); changeRedirectAppPrimaryCtaLink(event, item.template, loc); document.querySelector('#open_in_app_widget_' + item.template).classList.remove('hide-openInApp'); document.querySelector('body').classList.add('no-scroll'); if (item.ga) { // var gaLabel = event.currentTarget.querySelector(item.ga.selector).getAttribute(item.ga.dataAttr); } var secondaryCta = ''; if (document.querySelector('#secondary_cta_' + item.template)) { secondaryCta = document.querySelector('#secondary_cta_' + item.template).textContent; } customGaEvents("Download", "Download - Widget - " + item.template.charAt(0).toUpperCase() + item.template.slice(1) + " - View", document.querySelector('#primary_cta_' + item.template).textContent + ' - ' + secondaryCta + ' - ' + productType); }); // Inject the HTML document.querySelector(placeholder.selector).insertAdjacentHTML( placeholder.position, wrapper.innerHTML ) } // after template injected selectedTemplate.afterLoading(); // Add GA events on primary and secondary click var primaryCtaLink = document.querySelector('#primary_cta_' + item.template); var secondaryCtaLink = document.querySelector('#secondary_cta_' + item.template); if (document.querySelector('#widget_openInApp_action')) { document.querySelector('#widget_openInApp_action').href = primaryCtaLink.href; } if (primaryCtaLink) { primaryCtaLink.addEventListener('click', function(ev) { customGaEvents("Download", "Download - Widget - " + item.template.charAt(0).toUpperCase() + item.template.slice(1) + " - Click", ev.currentTarget.innerText + ' - ' + productType); }); } if (secondaryCtaLink) { secondaryCtaLink.addEventListener('click', function(ev) { customGaEvents("Download", "Download - Widget - " + item.template.charAt(0).toUpperCase() + item.template.slice(1) + " - Click", ev.currentTarget.innerText + ' - ' + productType); }); } } }); }); function changeRedirectAppPrimaryCtaLink(ev, widgetType, pathname) { var primaryCtaLink = document.querySelector('#primary_cta_' + widgetType); var secondaryCtaLink = document.querySelector('#secondary_cta_' + widgetType); // We have current location, event and widget where the link needs to be changed if (pathname.match('/mutual-funds/')) { var webLink = ev.currentTarget.querySelector(".scheme-name a").getAttribute("href"); if (webLink && secondaryCtaLink) { secondaryCtaLink.href = webLink; } var schemeId = ev.currentTarget.dataset.schemeId var redirectLink = 'https://etmoney.onelink.me/unJQ?pid=mweb-organic&c=OIA_schemeid_' + schemeId + '&af_ios_url=' + encodeURIComponent('https://apps.apple.com/in/app/etmoney-mutual-funds-sip-fd/id1212752482') + '&is_retargeting=true&af_inactivity_window=7d&af_dp=' + encodeURIComponent('https://www.etmoney.com/mobileApp/App/investment?state=7&schemeId=' + schemeId) + '&af_web_dp=' + encodeURIComponent('https://www.etmoney.com') + '&af_android_url=' + encodeURIComponent('https://play.google.com/store/apps/details?id=com.smartspends&hl=en_IN&gl=US'); } else if (pathname.match('/fixed-deposit')) { var webLink = ev.currentTarget.querySelector("td a").getAttribute("href"); if (webLink && secondaryCtaLink) { secondaryCtaLink.href = webLink; } } else if (pathname.match('/credit-card/')) { var webLink = ev.currentTarget; if (webLink && secondaryCtaLink) { secondaryCtaLink.href = webLink; } } // TODO: Link for product listing to be generated if (redirectLink) { primaryCtaLink.href = redirectLink; } } // ()();
Mutual Funds All about Mutual Funds Know your Investor Personality Mutual Funds Home Explore Mutual Funds Check Portfolio Health Find mutual funds by type Equity funds Debt funds Hybrid funds Genius Explore Genius Genius Portfolios MF Portfolios Stocks Portfolios Stocks NPS More More Products
Fixed Deposit Tax Saving Maximizer Credit Score Insurance
Term Life Insurance Health Insurance Calculators
SIP Calculator Mutual Fund Calculator FD Calculator NPS Calculator See all calculators Company
About Us Learn My Account
My investments My SIPs My Watchlist My transactions Track external mutual funds Profile Profile Logout
Investments Mutual Funds National Pension System (NPS) Fixed Deposit (FD) Tax Saving Investment Insurance Term Life Insurance Health Insurance SIP Calculator Lumpsum Calculator HRA Calculator NPS Calculator Mutual Fund Calculator Term Insurance Calculator Income Tax Calculator CAGR Calculator Rent Receipt Generator Compare Mutual Fund Money Manager Learn About Us Mutual Funds
Mutual Funds Home Know your Investor Personality All about Mutual Funds Explore Mutual Funds Check Portfolio Health Equity funds Debt funds Hybrid funds Genius
Explore Genius Genius Portfolios MF Portfolios Stocks Portfolios Insurance
Term Life Insurance Health Insurance Calculators
SIP Calculator Mutual Fund Calculator FD Calculator NPS Calculator See all calculators
Great! You have sucessfully subscribed for newsletters for investments
Subcribed email:
About Earn My Orders Withdrawal Referral Benefits SIP Once you've placed your withdrawal request, it can take up to 1-2 business day for the money to be credited back into your account.
Was this helpful?
Support:
Health insurance help Term Insurance help File a Complaint Post-sale Servicing Complaint Handling Help:
Mutual Fund Help Genius Help FD Help NPS Help Earn Help Insurance Help Credit Score Help Tools & Calculator:
NPS Calculator SIP Calculator Compound Interest Calculator Simple Interest Calculator FD Calculator RD Calculator Term Insurance Calculator EMI Calculator Income Tax Calculator HRA Calculator CAGR Calculator Rent Receipt Generator EPF Calculator Sorry to hear that!
If you need more help, kindly get in touch with us
You have active tickets !
Hey there! Our team is actively working on your ticket and will respond to you soon. We appreciate your patience while we resolve this.
I have a different query.
Welcome to Support!!
How can we help you?
Email
Please describe your issue
Was this helpful?
Thank you for your feedback!
Okay, we are raising a ticket now, a team member will respond within 24 hours.