Corazon Aquino, revolutionary president of the Philippines | Amazing Women In History
/** Add data-vars-ga for MI Popular Posts Links */ setTimeout(function() { //const clStyle = "font-size: 20px; color: limegreen"; const qSels = [ ".monsterinsights-inline-popular-posts-post a", ".monsterinsights-widget-popular-posts-list a", ".monsterinsights-products-popular-posts-list a", ]; function addDataVarsGA(pps) { pps.forEach((elem) => { elem.setAttribute("data-vars-ga-category", "popular-posts"); elem.setAttribute("data-vars-ga-action", elem.getAttribute("href")); elem.setAttribute("data-vars-ga-label", elem.innerText); }); } //console.clear(); qSels.map((elem) => { let pps = document.querySelectorAll(elem); //console.log(`elem = ${elem}`); //console.log(pps); console.log(`pps.length = ${pps.length}`); if (!pps.length) return; /*console.log( "%cPP: Found " + pps.length + " popular posts to process.", clStyle );*/ addDataVarsGA(pps); }); }, 5000); /** Add this JavaScript function to the footer section. */