I understand that there's a very well-written answer to a similar question here How to implement "mainEntityOfPage" to this specific site? but I'm still quite confused and could use some help.
So the website I'm building is a corporate website for a local business, and it has many different sections—one of which is an Articles area (news, features, whitepapers, etc.).
Now, this is the first time I'm using Schema so please bear with me.
I've set it up so that the entire website itself is inside the LocalBusiness
(via some judicious meta-tagging within the header of my page-template). Everything works on that end, and it checks out perfectly on the Google Validator (i.e. Structured Data Testing Tool).
My issue is that for the ARTICLE pages, I have a special template for its content. So the content of the article page itself is within a <div itemscope itemtype="http://schema.org/Article">
, and I've been able to successfully encode all the other metadata required for a good Article
.
My only concern is that Google recommends I have the mainEntityOfPage
property.
From how I understand, this tag would tell crawlers that although there might be multiple major types on the page (in this case, LocalBusiness
and Article
), one takes precedence.
Did I get it right?
If I did, then how do I use it? Do I add a new meta
or link
tag within the Article
content area?
I saw that the recommended method is to add a <link itemprop="mainEntityOfPage" href="http://example.com/article-1" />
tag. How does this work? Should I put it within the scope of the Article
itemscope (i.e. inside the article content template)? So the URL should point to this very same page?
Please help!