i have an HTML website that used to be a WordPress website, after uploading the HTML code, my google analytics seems not to be working even after i copied all codes from google and pasted them in my javascript.
how do i resolve this, what is the best way to connect google analytics and AdSense to your HTML website?
<!-- Google Adsense -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8031380096607078"
crossorigin="anonymous"></script>
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=*********"></script>