Google supported JSON-based serialisation for rendered dataLayer values such as phone numbers for call tracking and future actions displayed in gmail.

Email:

  • Email markup: JSON-LD

semanticweb.com/github-adds-schema-org-actions-email-notifications-via-json-ld_b44450

developers.google.com/gmail/markup/

www.google.com/webmasters/markup-tester/ (email)

image156

image157

<script type=”application/ld+json”>{

“@context”: “http://schema.org”,

“@type”: “Event”,

“name”: “Taco Night”,

“startDate”: “2015-04-18T15:30:00Z”,

“endDate”: “2015-04-18T16:30:00Z”,

“location”: {

“@type”: “Place”,

“address”: {

“@type”: “PostalAddress”,

“name”: “Google”,

“streetAddress”: “24 Willie Mays Plaza”,

“addressLocality”: “San Francisco”

}

},

“action”: [{

“@type”: “RsvpAction”,

“handler”: {

“@type”: “HttpActionHandler”,

“url”: “http://clientdomain.com/rsvp?eventId=123&value=yes”

},

“attendance”: “http://schema.org/RsvpAttendance/Yes”

},{

“@type”: “RsvpAction”,

“handler”: {

“@type”: “HttpActionHandler”,

“url”: “http://clientdomain.com/rsvp?eventId=123&value=no”

},

“attendance”: “http://schema.org/RsvpAttendance/No”

}]

}</script>

 

Phone numbers:

www.google.com/webmasters/markup-tester/corporatecontacts (phone numbers)

image158

image159

Resources:

 

Other potential actions:

  • org/potentialAction
    • org/PotentialActionStatus
  • org/ActiveActionStatus
  • org/CompletedActionStatus
  • org/PropertyValueSpecification
  • org/ActionStatusType
    • org/actionStatus
  • org/EntryPoint

 

Examples:

<script type=”application/ld+json”>

{

“@context”: “http://schema.org”,

“@type”: “WebSite”,

“url”: “http://blog.clientdomain.com /”,

potentialAction“: {

“@type”: “SearchAction“,

“target”: “http://blog.clientdomain.com/?s={search_term}”,

“query-input”: “required name=search_term”

}

}

</script>

 

<script type=”application/ld+json”>

{

“@context”: “http://schema.org”,

“@type”: “Organization“,

“url”: “http://www.clientdomain.com”,

“contactPoint”: [

{

“@type”: “ContactPoint“,

“telephone”: “+1-877-746-0909”,

“contactType”: “customer service”,

“contactOption”: “TollFree”,

“areaServed”: [“US”, “CA”],

“availableLanguage”: [“English”, “French”]

}

]

},{

“@type”: “Product“,

“url”: “http://clientdomain.com/products/ipod”,

potentialAction“: {

“@type”: “BuyAction“,

“target”: {

“@type”: “EntryPoint“,

“urlTemplate”: “https://clientdomain.com/products/ipod/buy”,

“encodingType”: “application/ld+json”,

“contentType”: “application/ld+json”

},

“result”: {

“@type”: “Order“,

“url-­output”: “required”,

“confirmationNumber-­output”: “required”,

“orderNumber-­output”: “required”,

“orderStatus-­output”: “required”

}

}

},{

“@context”: “http://schema.org”,

“@type”: “ReviewAction“,

“target”: {

“@type”: “EntryPoint“,

“urlTemplate”: “https://api.clientdomain.com/review”,

“encodingType”: “application/ld+json”,

“contentType”: “application/ld+json”

},

 

“object”: {

“@type”: “Movie“,

“url-­input”: “required”,

 

},

“resultReview”: {

“url-­output”: “required”,

“reviewBody-­input”: “required”,

“reviewRating”: {

“ratingValue-­input”: “required”

}

}

},{

// POST https: //api.clientdomain.com/review

“@context”: “http://schema.org”,

“@type”: “ReviewAction“,

“object”: {

“@id”: “http://clientdomain.com/movies/123”

},

“resultReview”: {

“reviewBody”: “yada, yada, yada”,

“reviewRating”: {

“ratingValue”: “4”

}

}

},{

“@context”: “http://schema.org”,

“@type”: “ReviewAction“,

actionStatus“: “CompletedActionStatus”,

“resultReview”: {

“url”: “http://clientdomain.com/reviews/abc”

}

},{

“@context”: “http://schema.org”,

“@type”: “WatchAction“,

actionStatus“: “CompletedActionStatus”,

“agent”: {

“@type”: “Person“,

“name”: “Kevin Bacon”

},

“object”: {

“@type”: “Movie“,

“name”: “Footloose”

},

“startTime”: “2014-03-01”

},{

“@context”: “http://schema.org”,

“@type”: “Movie“,

“name”: “Footloose”,

potentialAction“: {

“@type”: “WatchAction“,

“target”: “http://clientdomain.com/player?id=123”

}

},{

“@context”: “http://schema.org”,

“@type”: “WebSite“,

“name”: “Clientdomain.com”,

potentialAction“: {

“@type”: “SearchAction“,

“target”: “http://clientdomain.com/search?q={q}”,

“query-­input”: “required maxlength=100 name=q”

}

},{

“@type”: “BuyAction“,

actionStatus“: “CompletedActionStatus”,

“object”: “https://clientdomain.com/products/ipod”,

“result”: {

“@type”: “Order“,

“url”: “http://clientdomain.com/orders/1199334”,

“confirmationNumber”: “1ABBCDDF23234”,

“orderNumber”: “1199334”,

“orderStatus”: “PROCESSING”

},

 

}

</script>

0117 3361103

FREE GOOGLE TAG MANAGER BOOK

For the PDF Copy, please enter email address
DOWNLOAD
close-link
Click Me