// Initial omniture setup window.omniture = { tpv: [], tl: [] }; window.omniture.trackPageView = function () { window.omniture.tpv.push(arguments) }; window.omniture.trackLink = function () { window.omniture.tl.push(arguments) }; // having separate account for production for correct tracking in www.flipkart.com if (window.location.host === 'www.flipkart.com' || /\.store\.flipkart\.com/i.test(window.location.host)) { // using desktop check here to set the correct report suite id for oneview // in oneview whenever we open batman codebase on desktop viewport we need to report // omniture data with the same suite id as zion codebase, hence the following check /* isApp -> For pages such as productWarranty page which is getting powered from batman for all 3 platforms (msite, android and ios). And for all these pages we are sending s_account in omniture tracking as flipkart-mob-web which is not a desired result. So inorder to segregate this i.e. send flipkart-mob-web for msite and flipkart-mob-androidapp for android and ios we have made the below change. */ window.s_account = 'flipkart-mob-web'; if (true) { window.s_account = 'flipkart-prd' } else if (false) { window.s_account = 'flipkart-mob-androidapp' } window.omnitureSamplingBucketId = '51'; window.omnitureIngestionEnabled = 'false'; var campaignId = ''; // campaign id tracking code if (campaignId && /^EM-OW/.test(campaignId)) { window.omniture.trackLink({ events: 'event1', evar45: campaignId }); } } else { window.s_account = 'flipkart-mob-web-stage'; if (true) { window.s_account = 'flipkart-prd-test' } else if (false) { window.s_account = 'flipkart-mob-androidapp-stage' } } if (true) { window.s_isDesktop = true; } //window.loadJS && window.loadJS('https://static-assets-web.flixcart.com/batman-returns/batman-returns/p/omniv31-1.js', null, false, true);