首页 > 解决方案 > 活动预订电子邮件标记无法识别“操作”属性

问题描述

我创建了一封包含 Microdata for EventReservation 的电子邮件。当我收到邮件时,Gmail 可以正确识别有关事件日期、地点等的信息。但是我添加了一个自定义操作来访问 Gmail 无法识别的网页。我仍然支持Gmail 的Event 的这个action属性。微数据如下所示:

    <div itemscope itemtype="http://schema.org/EventReservation">
    <meta itemprop="reservationNumber" content="1000"/>
    <link itemprop="reservationStatus" href="http://schema.org/ReservationConfirmed">
    <link itemprop="modifyReservationUrl" href="https://www.mywebsite.com/1000">
    <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
        <meta itemprop="name" content="Name"/>
    <div itemprop="action" itemscope itemtype="http://schema.org/Action">
        <meta itemprop="name" content="Go to my web site"/>
        <link itemprop="url" href="https://www.mywebsite.com/action"/>
    </div>
    </div>
    <div itemprop="reservationFor" itemscope itemtype="http://schema.org/Event">
        <meta itemprop="name" content="Event name"/>
        <meta itemprop="startDate" content="2020-09-01T18:00:00+0000"/>
        <meta itemprop="endDate" content="2020-09-01T19:00:00+0000"/>
        <div itemprop="performer" itemscope itemtype="http://schema.org/Organization">
            <meta itemprop="name" content="Event Performer Name}}"/>
        </div>
        <div itemprop="location" itemscope itemtype="http://schema.org/Place">
            <meta itemprop="name" content="Address name"/>
            <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
                <meta itemprop="streetAddress" content="Address">
                <meta itemprop="addressLocality" content="Locality">
                <meta itemprop="addressRegion" content="Region"/>
                <meta itemprop="postalCode" content="PostCode">
                <meta itemprop="addressCountry" content="Country">
            </div>
        </div>
    </div>
</div>

标签: google-schemas

解决方案


推荐阅读