AMP Title mobile vs desktop
-
I have an issue with Google Analytics and Lighthouse not detecting the <title> tag in AMP pages.
Yoast SEO inserts the title tag properly, and as noted by Lighthouse developers, getting the title via JavaScript runs NULL (document.querySelector(‘title’)) See https://github.com/GoogleChrome/lighthouse/issues/12215
But then I realized this script fails when viewing AMP using a mobile viewport, but works with a desktop viewport. So I repeated Lighthouse test using my AMP for mobile and desktop, and the latter fails (title not found), while the second works just fine.
AFAIK the code is the same in mobile and desktop (tested with meld), so I don’t understand what’s going on here.
The page I need help with: [log in to see the link]
The topic ‘AMP Title mobile vs desktop’ is closed to new replies.