File "popular-posts.min.js"

Full Path: /home/tekvhqgl/public_html/wp-content/plugins/google-analytics-for-wordpress/assets/js/popular-posts.min.js
File size: 696 bytes
MIME-type: text/plain
Charset: utf-8

;var MonsterInsights_Popular_Posts={init:function(){this.grab_widgets_with_ajax()},grab_widgets_with_ajax:function(){var e=new XMLHttpRequest(),o=monsterinsights_pp.ajaxurl,s=document.querySelectorAll('.monsterinsights-popular-posts-widget-json'),t,n=s.length,i='action=monsterinsights_popular_posts_get_widget_output&post_id='+monsterinsights_pp.post_id;for(t=0;t<n;++t){i+='&data[]='+s[t].innerHTML};e.open('POST',o);e.setRequestHeader('Content-Type','application/x-www-form-urlencoded');e.onload=function(){if(e.status===200){let rendered_widgets=JSON.parse(e.responseText);for(t=0;t<n;++t){s[t].parentElement.innerHTML=rendered_widgets[t]}}};e.send(i)},};MonsterInsights_Popular_Posts.init();