Google+分享不会收集元数据,但Facebook和LinkedIn会.为什么



为了记录,我刚刚尝试了这个。尽管文档中说模式微数据无论如何都不是必需的。我已经为微数据尝试了许多不同的位置和类型,但我仍然无法在谷歌片段中显示任何内容。

再说一遍,脸书和linkedin似乎在同一个页面上工作。。。

<!DOCTYPE html>
<html>
<head>
<title>Reviews for John W. Smith, Profession: DOCTOR OF CHIROPRACTIC</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<meta itemprop="name" content="John W. Smith (Profession: DOCTOR OF CHIROPRACTIC)">
<meta itemprop="description" content="Rate and review Maine licensed professionals and discuss occupational licensing regulation in Maine. Rate - and debate regulations for - doctors, lawyers, massage therapists, funeral directors, land surveyors, social workers, and more.">
<meta itemprop="image" content="http://www.mainelicensereview.com/imgs/mlr3.png">

<meta name="description" content="Rate and review Maine's licensed professionals and discuss occupational licensing regulation in Maine. Rate - and debate regulations for - doctors, lawyers, massage therapists, funeral directors, land surveyors, social workers, and more.">
<meta name="keywords" content="Professional, Licensing, Reviews, Maine, Regulation, PFR, DOCTOR OF CHIROPRACTIC, CHIROPRACTIC"><meta property="og:site_name" content="Maine License Review: Rate Licensed Professionals and Discuss Professional Licensing Laws" />
<meta property="og:url" content="http://www.mainelicensereview.com/licensee.php?licpage=2805" />
<meta property="og:image" content="http://www.mainelicensereview.com/imgs/mlr3.jpg" />
<meta property="og:title" content="John W. Smith (Profession: DOCTOR OF CHIROPRACTIC)" />
<meta property="og:description" content="Milton Friedman said having a license is no assurance of quality. At Maine License Review, rate the quality of any licensed professional in Maine. Barbers, massage therapists, doctors, lawyers...Review professionals and the laws that govern their professions, costing you money and others their jobs." />
<meta property="fb:app_id" content="618089658327157" />
<meta property="og:type" content="profile" />
<meta property="og:locale" content="en_US" />

<!-- Google First Snip -->
<link rel="canonical" href="http//www.mainelicensereview.com/licensee.php?licpage=2805" />

然后我有稍后:

<body itemscope itemtype="http://schema.org/Person">

后来:

<img itemprop="image" src="/imgs/mlr3.png" />

后来:

<h1 itemprop="name">John W. Smith</h1>

后来:

<h3 itemprop="description">DOCTOR OF CHIROPRACTIC</h3>

谷歌结构化数据测试仪就在这里,它应该显示结构化数据形式的完整分解,而不仅仅是您当前看到的搜索引擎部分。Facebook正在为Open Graph使用og:meta标签,但这是结构化数据的问题。必须先放置项目范围项类型,然后才能使用任何项目道具。

最佳做法是避免对页面中已经存在的信息使用元标签,理想情况下,只使用它们来澄清日期格式等令人困惑的信息。在说明了你将使用哪件东西(一个人)后,无论它出现在哪里,你都会用一个来代替。因此,从中删除微数据并将其移动到

<body itemscope itemtype="http://schema.org/Person">
<h1 itemprop="name">John W. Smith</h1>
<h2>Qualifications</h2>
<h3 itemprop="description">DOCTOR OF CHIROPRACTIC</h3>
<img src="photo.jpg" itemprop="image" alt="Photo of John W.Smith"/>
<span itemprop="jobTitle">Professor</span>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">
  20341 Whitworth Institute
  405 N. Whitworth
</span>
<span itemprop="addressLocality">Seattle</span>,
<span itemprop="addressRegion">WA</span>
<span itemprop="postalCode">98052</span>

schema.org/Person页面包含几个示例。这个生成器可能会有所帮助。

编辑以进行澄清并添加刷新信息:Meta标签中有3个"itemprop"语句,它们位于body标签中的itemtype和itemscope部分之上。因此,描述项道具将不起作用,名称和图像都将使用页面下方的结构化数据,而不是元标记数据。您需要删除3个"itemprop"元标记。

刷新g+你可以让谷歌重新检查你的页面,在页面名称后添加一个假参数,迫使它接受更改,例如。http://example.com/person.html?1(或者简单地使用网站管理员工具迫使它再次抓取页面并获取新值)。

最新更新