Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

SendGrid and Google AMP for Email


Google AMP (Accelerated Mobile Pages) is a proprietary Google technology built to speed up mobile apps and websites. AMP for Email is an extension and adaptation of the AMP technology that enables interactivity for Gmail recipients' email messages including carousels, expanding accordions, dynamically updating content, and more. For more information on Google's AMP specification for email(link takes you to an external page), best practices(link takes you to an external page), and how to register to use AMP(link takes you to an external page) see Google's AMP documentation.

(information)

Info

SendGrid v3 API supports Google AMP for Email. You cannot send AMP content in SendGrid v2 API. Users can send AMP via SMTP however we strongly suggest sending it through V3.


Sending AMP with SendGrid

sending-amp-with-sendgrid page anchor

SendGrid v3 API supports the AMP MIME part as well as the ordering recommended by Google to ensure compatibility across different mail clients. We recommend following Google's documentation(link takes you to an external page) to send AMP messages through SendGrid.


Tracking AMP with SendGrid

tracking-amp-with-sendgrid page anchor

Open and click metrics for AMP will be aggregated with html open and click metrics in the SendGrid UI, but the AMP events are uniquely identified when collected via the Event Webhook.


Open event tracking for AMP is identified by a JSON field called sg_content_typeand will be amp instead of html.


_10
{
_10
"email": "john.smith@sendgrid.com",
_10
"event": "open",
_10
"ip": "66.249.84.159",
_10
"sg_event_id": "zgAjGPn1TGmO62eSqw9VBQ",
_10
"sg_message_id": "zT-FDCibS4uwaz08cIX8_Q.filter0794p1las1-20361-5CCC528C-16.0",
_10
"sg_content_type": "amp",
_10
"timestamp": 1556901948,
_10
"useragent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
_10
}


Click event tracking for AMP is identified byurl_offset.type is amp.


_14
{
_14
"email": "john.smith@sendgrid.com",
_14
"event": "click",
_14
"ip": "12.34.56.789",
_14
"sg_event_id": "fmip8TM8RWqJjT44cL5z-w",
_14
"sg_message_id": "zT-FDCibS4uwaz08cIX8_Q.filter0794p1las1-20361-5CCC528C-16
_14
"timestamp": 1556901957,
_14
"url": "http://google.com/",
_14
"url_offset": {
_14
"index": 0,
_14
"type": "amp"
_14
},
_14
"useragent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36"
_14
}

(information)

Info

Google requires all images to use HTTPS, which will require you to enable SSL tracking on your SendGrid account in order to track opens.


Rate this page: