Skip to content

Instantly share code, notes, and snippets.

@steven-miller
Created June 11, 2019 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steven-miller/7cfad555b5cec5530a388435a4ebac54 to your computer and use it in GitHub Desktop.
Save steven-miller/7cfad555b5cec5530a388435a4ebac54 to your computer and use it in GitHub Desktop.
Gmail Promotions markup in a customizable HubSpot module
<div itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="{{ module.organization_name }}" />
<meta itemprop="logo" content="{{ module.small_logo }}" />
</div>
<div itemscope itemtype="http://schema.org/DiscountOffer">
<meta itemprop="description" content="{{ module.discount_amount }}" />
<meta itemprop="discountCode" content="{{ module.discount_code }}" />
<meta itemprop="availabilityStarts" content="{{ module.deal_starts|datetimeformat('%Y-%m-%dT%H:%M:%S%z') }}" />
<meta itemprop="availabilityEnds" content="{{ module.deal_ends|datetimeformat('%Y-%m-%dT%H:%M:%S%z') }}" />
</div>
<div itemscope itemtype="http://schema.org/PromotionCard">
<meta itemprop="image" content="{{ module.promo_image }}" />
</div>
@lampyvision
Copy link

Just found this. Is it a way to add the data needed to setup a gmail promo tab in your email message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment