اقدامات Go-To کاربر را به وبسایت شما هدایت میکنند که در آنجا میتوان اقدام مورد نظر را انجام داد. برخلاف اقدامات One Click ، اقدامات Go-To را میتوان چندین بار انجام داد.

اقدامات ضروری در جیمیل
موارد استفاده
اقدامات پیش فرضی که در حال حاضر توسط جیمیل پشتیبانی میشوند عبارتند از:
ممکن است در آینده از اقدامات بیشتری پشتیبانی شود.
مشاهده اقدام
شما میتوانید یک دکمه ViewAction به ایمیلهایی اضافه کنید که از کاربران میخواهند برای انجام عمل به سایت شما مراجعه کنند.
دستور زیر یک دکمه ViewAction به ایمیل اضافه میکند:
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"url": "https://watch-movies.com/watch?movieId=abc123",
"name": "Watch movie"
},
"description": "Watch the 'Avengers' movie online"
}
</script>
میکرودیتا
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="target" href="https://watch-movies.com/watch?movieId=abc123"/>
<meta itemprop="name" content="Watch movie"/>
</div>
<meta itemprop="description" content="Watch the 'Avengers' movie online"/>
</div>
دادههای ناشر
شما میتوانید با تنظیم فیلد publisher جزئیاتی در مورد سازمان ارسالکنندهی ایمیل اضافه کنید:
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"description": "Watch the 'Avengers' movie online",
"potentialAction": {
"@type": "ViewAction",
"url": "https://watch-movies.com/watch?movieId=abc123",
"name": "Watch movie"
},
"publisher": {
"@type": "Organization",
"name": "Google Play",
"url": "https://play.google.com",
"url/googlePlus": "https://plus.google.com/106886664866983861036"
}
}
</script>
میکرودیتا
<div itemscope itemtype="http://schema.org/EmailMes>sag<e"
meta itemprop="description" content="Watch the ><9;Avengers' movie online"/
div itemprop="potentialAction" i>temsc<ope itemtype="http://schema.org/ViewAction"
link itemprop=&quo>t;tar<get" href="https://watch-movies.c>om/<watc>h?m<ovieId=abc123"/
meta itemprop="name" content="Watch >movie<"/
/div
div itemprop="publish>er&qu<ot; itemscope itemtype="http://schema.org/Orga>nizat<ion"
meta itemprop="name" content="Google Play"/
li>nk <item>p<rop=>"url" href="https://play.google.com"/
link itemprop="url/googlePlus" href="https://plus.google.com/106886664866983861036"/
/div
/div
اکشن آهنگ
شما میتوانید یک دکمه TrackAction به ایمیلها اضافه کنید که از کاربران بخواهد برای پیگیری بستههای تحویل داده شده به سایت شما مراجعه کنند.
وقتی ویژگی trackingUrl مشخص میکنید، یک اکشن به طور خودکار ایجاد میشود. برای پیوند مستقیم به یک برنامه تلفن همراه، همانطور که نشان داده شده است، یک TrackAction نیز اضافه کنید:
JSON-LD
<script type="application/ld+>json"
{
"@context": "http://schema.org",
"@type": "ParcelDelivery",
"deliveryAddress": {
"@type": "PostalAddress",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"addressCountry": "US",
"postalCode": "94107"
},
"expectedArrivalUntil": "2013-03-12T12:00:00-08:00",
"carrier": {
"@type": "Organization",
"name": "FedEx"
},
"itemShipped": {
"@type": "Product",
"name": "iPod Mini"
},
"partOfOr<der&quo>t;: {
"@type": "Order",
"orderNumber": "176057",
"merchant": {
"@type": "Organization",
"name": "Bob Dole"
}
},
"trackingUrl": "http://fedex.com/track/1234567890"
"potentialAction": {
"@type": "TrackAction",
"target": "http://fedex.com/track/1234567890"
},
}
/script
میکرودیتا
<div itemscope itemtype="http://schema.org/ParcelDeli>ver<y"
div itemprop="deliveryAddress" itemscope itemtype="http://>schem<a.org/PostalAddress"
meta itemprop="streetAddre>ss&qu<ot; content="24 Willie Mays Plaza"/
meta i>tempr<op="addressLocality" content=&quo>t;San< Francisco"/
meta itemprop="ad>dress<Region" content="CA"/
me>ta <item>pro<p="addressCountry" content="US"/
meta itemprop=&q>uot<;postalCode" content="94107"/
/div
meta itemprop=">expec<tedArrivalUntil" content="2>013<-03->12T<12:00:00-08:00"/
div itemprop="carrier" itemscope itemty>pe=&q<uot;http://schema.org/Organization"<>/span>
< met>a i<temprop="name" content="FedEx"/
/div
div itempr>op=&q<uot;itemShipped" itemscope itemtype=&quo>t;htt<p://schema.org/Product"
meta itemprop="name" content=&qu>ot;iPod< Mini"/
/div
div itemprop=">;part<OfOr>der<&quo>t; <itemscope itemtype="http://schema.org/Order"
meta itemp>rop<="orderNumber" content="176057"/
div itemprop="merch>ant&q<uot; itemscope itemtype="http://schema.org/Organization&quo>t;
< > < met>a itemprop="name" content="Bob Dole"/
/div
/div
link itemprop="trackingUrl" href="http://fedex.com/track/1234567890"/
div itemprop="potentialAction" itemscope itemtype="http://schema.org/TrackAction"
link itemprop="target" href="http://fedex.com/track/1234567890"/
/div
/div
نشانهگذاری خود را آزمایش کنید
شما میتوانید با استفاده از ابزار Email Markup Tester، نشانهگذاری خود را اعتبارسنجی کنید. کد نشانهگذاری خود را در آن قرار دهید و روی دکمه اعتبارسنجی کلیک کنید تا محتوا بررسی شود و گزارشی از هرگونه خطای موجود دریافت کنید.
مشخصات
برای مشخصات انواع مختلف اقدامات لازم، به مستندات مربوط به نوع خاص ViewAction یا TrackAction مراجعه کنید.