Loading...
var klevu_collectionProductPath = '/collections/mia-cares'; function GetURLParameter(sParam){ var sPageURL = window . location . search . substring(1); var sURLVariables = sPageURL . split('&'); for (var i = 0; i < sURLVariables . length; i++){ var sParameterName = sURLVariables[i] . split('='); if (sParameterName[0] == sParam) { return decodeURIComponent(sParameterName[1]); } } } var q = GetURLParameter('q'); var klevu_pageCategory; var klevuquery=''; var klevucountslash; if(q==''||q==null){ klevu_pageCategory='MIA Cares'; klevucountslash=window.location.pathname.split('/').length; if(klevucountslash==4){ var klevutags=window.location.pathname.split('/').pop().split('+'); for(i=0;i < klevutags.length;i++){ klevuquery+='tags:'; klevuquery+=klevutags[i]+';;' } if(klevuquery!==''){ var klevu_userLandingFilterResults=klevuquery.slice(0,-2) } } }else{ klevu_pageCategory=''; var attribute_key=window.location.pathname.split('/').pop(); if(attribute_key=='vendors'){ attribute_key='brand' } if(attribute_key=='types'){ attribute_key='type' } var klevu_userLandingFilterResults=attribute_key+':'+q }