Using MonsterInsights and pasted the .js code in head section using Header and Footer plugin. But analytics is still not working. How to fix this?
Use analytics code on . header.php above and check it on google analytics. it will shows the real time visitors on your website.
Visit Appearance >> Editor and Paste Google Analytics code inside the head tag.