Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to mark up an online event with Schema.org for Google?

I have used the Event schema for describing an online event, but Google asks for location as a required property.

Which schema would you use? And if you used the Event schema, how would you set the location property?

<script type='application/ld+json'>
{
    "@context": "http://www.schema.org",
    "@type": "Event",
    "name": "This is the event name",
    "url": "http://example.com",
    "performer" : {
        "@type": "Person",
        "name" : "Daniel G.",
        "additionalName" : "Dani",
        "description": "This is my description"
    },
    "description": "This is the description of the event",
    "startDate": "2017-06-03T14:38:00+02:00",
    "endDate": "2017-06-03T15:08:00+02:00",
    "duration": "PT30M",
    "inLanguage": "es",
    "image" : "http://example.com/image.jpg",
    "offers": {
        "@type": "Offer",
        "price": 10,
        "availability" : "http://schema.org/InStock",
        "priceCurrency": "EUR",
        "url": "http://example.com"
    }
}
</script>
like image 963
DanielBlazquez Avatar asked Nov 27 '25 21:11

DanielBlazquez


1 Answers

There is now additional markup available to describe online/offline events. For Event check out the new eventAttendanceMode property which accepts values from at least the following options (enumeration): OfflineEventAttendanceMode, OnlineEventAttendanceMode, MixedEventAttendanceMode.

like image 60
Tourendal Avatar answered Nov 30 '25 23:11

Tourendal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!