Salesforce · 3 min read · Updated

Gmail Email promotions with deals and product carousel, useful for e-commerce email

email annotations ecommerce

Only today, we noticed two things one is email deals and another is the products carousel that shows on the Gmail mobile app, so we found out Gmail Email annotations bring email messages in the Promotions tab to life with features such as images, deals, and expiration dates. So we started to dig more and see how we can do similar things in use in the eCommerce email promotion. Here is an image of the email that we saw:

eCommerce Email annotations

How do the promotions and offers show up in the email of the Gmail App?

To show the promotions and offers in the email of the Gmail App, maybe it will show in others as well but now we see only on the Gmail App, for that you need to read the Email Annotations of Gmail.

Deal Annotation

To create the deal show up, you need to add the following scripts in your emails, the below script tag should be in the head section of the email

<script type="application/ld+json">
      [{
        "@context": "http://schema.org/",
        "@type": "DiscountOffer",
        "description": "DESCRIPTION",
        "discountCode": "DISCOUNT_CODE",
        "availabilityStarts": "START_DATE_TIME",
        "availabilityEnds": "END_DATE_TIME"
      }]
    </script>

Change the details as per your product offer.

You can create product carousels as well and display multiple images of the products in the emails, you can add up to 10 images, and for that, you need to add the following scripts in your emails, the below script tag should be in the head section of the email

<script type="application/ld+json">
      [
        // Build the first image preview in your product carousel:
        {
          "@context": "http://schema.org/",
          "@type": "PromotionCard",
          "image": "IMAGE_URL1",
          "url": "PROMO_URL1",

          // Optionally, include the following PromotionCard properties:
          "headline": "HEADLINE1",
          "price": PRICE1,
          "priceCurrency": "PRICE_CURRENCY1",
          "discountValue": DISCOUNT_VALUE1,
          "position": POSITION
        },

        // Build the second image preview in your product carousel:
        {
          "@context": "http://schema.org/",
          "@type": "PromotionCard",
          "image": "IMAGE_URL2",
          "url": "PROMO_URL2",

          // Optionally, include the following PromotionCard properties:
          "headline": "HEADLINE2",
          "price": PRICE2,
          "priceCurrency": "PRICE_CURRENCY2",
          "discountValue": DISCOUNT_VALUE2,
          "position": POSITION
        }

        // To include more image previews, add additional PromotionCard objects.
        // You can include up to 10 image previews in a product carousel.

      ]
    </script>

Hope this can help you to make your promotion email more beautiful in Gmail. If you want any development help then do not hesitate to contact us and we provide our top-notch support and highly professional development works.

You can also find us on Webocreation Twitter, Webocreation Facebook, and subscribe to our YouTube Channel. Please let us know if you have any questions or concerns. You can email us directly at webocreation.com@gmail.com. Please have a look at our other Salesforce, Marketo, Pardot, and Hubspot articles

Tagged
Rupak Nepali
Written byRupak Nepali

Rupak Nepali is a web developer, manage Webocreation website and the author of six books:
Getting Started with OpenCart Module Development (Packt, 2013),
OpenCart Theme and Module Development (Packt, 2015),
OpenCart 4: Dev Guide for Themes & Extensions (2024),
OpenCart 4: User Manual (2025),
Cloudflare for the Enterprise Website (2026) and
The Technical Web Guide for Marketers (2026).
Rupak has built OpenCart stores and extensions since 2010, has published more than 600 tutorials on Webocreation, and shares free OpenCart extensions on GitHub.
Find Rupak on
GitHub | Amazon | LinkedIn | X | YouTube.

Leave a Reply

Your email address will not be published. Required fields are marked *