We'd like for our ShipmentSent.CustomerNotification messages to include the schema.org code to make the "Track Package" button appear in the Subject line of the emails.
I found the documentation at Google, and it seems simple:
https://developers.google.com/gmail/markup/reference/go-to-action#track_action
I wonder if anyone has tried to do this yet??
Maybe like this?
<div itemscope itemtype="http://schema.org/ParcelDelivery">
<link itemprop="trackingUrl" href="http://fedex.com/track/%Shipment.TrackingNumber%"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/TrackAction">
<link itemprop="target" href="http://fedex.com/track/%Shipment.TrackingNumber%"/>
</div>
</div>
Or maybe this?
<div itemscope itemtype="http://schema.org/ParcelDelivery">
<link itemprop="trackingUrl" href="%Shipment.URLForCustomer%"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/TrackAction">
<link itemprop="target" href="%Shipment.URLForCustomer%"/>
</div>
</div>
Please share your experience if you have any-
Thanks!