Try to disable all browser extensions while debugging the analytics implementation. Some of these extensions are ad blockers or script blockers, which don't allow the loading of certain files on the webpage and block files, particularly paid ads, display ads and video ads. These extensions sometimes block the Google Analytics script and Google Tag Manager script; hence you see no data in Google Analytics.