We (Kate and Mikhail) were investigating canonical vs alternate links for T234340 based on information in https://webmasters.googleblog.com/2019/02/consolidating-your-website-traffic-on.html and were really confused when we were seeing clicks and impressions reported for en.m.wikipedia.org, since
In the current version, some of your traffic is attributed to the canonical property and some to the alternate property. The new version should attribute all of your traffic to the canonical property.
So based on our system and that blog post, we should be seeing 0 and 0 for .m. domains in the Google Search Console (GSC) but that's not the case. Looking at the page source revealed something incredibly weird:
From view-source:https://en.wikipedia.org/wiki/Wikipedia:
<link rel="alternate" href="android-app://org.wikipedia/http/en.m.wikipedia.org/wiki/Wikipedia"/> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Wikipedia&action=edit"/> <link rel="edit" title="Edit this page" href="/w/index.php?title=Wikipedia&action=edit"/> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"/> <link rel="shortcut icon" href="/static/favicon/wikipedia.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="Wikipedia (en)"/> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"/> <link rel="license" href="//creativecommons.org/licenses/by-sa/3.0/"/> <link rel="canonical" href="https://en.wikipedia.org/wiki/Wikipedia"/> <link rel="dns-prefetch" href="//meta.wikimedia.org" />
and from view-source:https://en.m.wikipedia.org/wiki/Wikipedia:
<link rel="alternate" href="android-app://org.wikipedia/http/en.m.wikipedia.org/wiki/Wikipedia"/> <link rel="manifest" href="/w/api.php?action=webapp-manifest"/> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Wikipedia&action=edit"/> <link rel="edit" title="Edit this page" href="/w/index.php?title=Wikipedia&action=edit"/> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"/> <link rel="shortcut icon" href="/static/favicon/wikipedia.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="Wikipedia (en)"/> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"/> <link rel="license" href="//creativecommons.org/licenses/by-sa/3.0/"/> <link rel="canonical" href="https://en.wikipedia.org/wiki/Wikipedia"/> <link rel="dns-prefetch" href="//meta.wikimedia.org" />
For some reason we're using href="android-app://org.wikipedia/http/en.m.wikipedia.org/wiki/Wikipedia", shouldn't that be href="https://en.m.wikipedia.org/wiki/Wikipedia" for indexing to correctly understand which version of the article is canonical vs alternate?
It is our suspicion that this is why we're not seeing what we expect to see in GSC.
QA
- Navigate to any page in a content namespace (e.g. mainspace)
- Observe that there's no alternate link whos href attribute begins with android-app://org.wikipedia, e.g. android-app://org.wikipedia/http/en.m.wikipedia.org/wiki/Cult_of_Luna
QA Results
AC | Status | Details |
---|---|---|
1 | ✅ | T244614#5908962 |
2 | ✅ | T244614#5908962 |