# Gmail Promotions Folder Annotation

**URL:** <https://community.hubspot.com/t/gmail-promotions-folder-annotation/93269>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [November 3, 2023, 7:40pm UTC](https://community.hubspot.com/t/gmail-promotions-folder-annotation/93269 "2023-11-03T19:40:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nrivera8108](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@nrivera8108](https://community.hubspot.com/u/nrivera8108)\
**Post date:** [November 3, 2023, 7:40pm UTC](https://community.hubspot.com/t/gmail-promotions-folder-annotation/93269/1 "2023-11-03T19:40:39Z")

</div>

Hello,  
I am attempting to implement this Promotions tab feature for Gmail as detailed here: [Annotate emails in the Promotions tab &nbsp;|&nbsp; Gmail &nbsp;|&nbsp; Google for Developers](https://developers.google.com/gmail/promotab/overview)  
Using the Design Manager, I created an email with the required code:  
\<head\>  
\<div itemscope itemtype=“[http://schema.org/DiscountOffer](http://schema.org/DiscountOffer)”\>  
\<meta itemprop=“description” content=“20% OFF”/\>  
\<meta itemprop=“discountCode” content=“SAVE20”/\>  
\</div\>  
\</head\>

However, on output, the div is removed from the head tag and placed in the body tag.

 ![Screenshot 2023-11-03 at 3.36.33 PM.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/a/8acfd36b24b1fe4f678cf4e5da5db57833a38f59.jpeg)

Is there a way to prevent this from happening or work around this? We believe this is preventing us from implementing this feature in our emails.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 6, 2023, 6:49pm UTC](https://community.hubspot.com/t/gmail-promotions-folder-annotation/93269/2 "2023-11-06T18:49:21Z")

</div>

Hi, @nrivera8108 👋 Thanks for your question. The sanitization and relocation of your div to the body is the expected behaviour here.

Have you tried using the `<script type="application/ld+json">` approach as outlined in the Google dev doc you linked to? Something like:

```lia-code-sample
<head>
 <script type="application/ld+json">
 [{
 "@context": "http://schema.org/",
 "@type": "DiscountOffer",
 "description": "20% OFF",
 "discountCode": "SAVE20",
 "availabilityStarts": "2023-09-25T18:44:37-07:00",
 "availabilityEnds": "2023-10-25T18:44:37-07:00"
 }]
 </script>
</head>

```

I used [ISO 8601](https://support.google.com/merchants/answer/7055760) format for the date stamps, as noted in the documentation.

Have fun building! — Jaycee

---

<div class="post-metadata">

**Author:** ![SThakor](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@SThakor](https://community.hubspot.com/u/SThakor)\
**Post date:** [December 21, 2023, 9:46pm UTC](https://community.hubspot.com/t/gmail-promotions-folder-annotation/93269/3 "2023-12-21T21:46:01Z")

</div>

Hi Jaycee! I followed the HTML listed in the google developers doc but I still don’t see it show up in my test send. Any idea on what could be wrong?

---

<div class="post-metadata">

**Author:** ![KMassoth1](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@KMassoth1](https://community.hubspot.com/u/KMassoth1)\
**Post date:** [August 2, 2024, 2:32pm UTC](https://community.hubspot.com/t/gmail-promotions-folder-annotation/93269/4 "2024-08-02T14:32:06Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) thank you for this response. I too am having trouble implementing this in my emails. I did put in the json code above. However, I put it right under the \<head\> (see image) and I cannot get this to work as planned either. Any advice? Do I need a double \<head\>PLUS SCRIPT\</head\>?

 ![KMassoth1_0-1722609113602.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/8/80ed7e2066d43dca3b6c3a5b5954a346c6fc631a.png)
