Hi,
Yesterday Friday 17, I got a week-over-week 23% drop in the figure of the pageviews in Analytics, but just a week-over-week 2% drop in the figure of the pageviews in AdSense.
The Analytics drop started yesterday Friday 17 at 13:00 (US Central Standard Time, UTC-6). I do not have AdSense hourly figures.
I'm afraid that the current Analytics code is the old one, and I use a local-hosted JS file.
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://example.com/js/analytics.js','ga');
ga('create', 'UA-1234567-1', 'auto');
ga('send', 'pageview');
</script>
On the 'Tracking code' of the Google Analytics webpages, I see that Google suggests this new code:
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-1234567-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-1234567-1');
</script>
I do not remember why I left the old code (maybe to speed up the pages through the local-hosted JS file), but now I'm not sure:
- whether I should update the Analytics code or not
- whether this old code is the origin of the drop in Analytics, or it was caused by the Ranking Algorithm Tremors of the last hours (https://www.webmasterworld.com/google/5053055-3-50.htm#msg5053948).
Thank you very much.