Skip to content

Instantly share code, notes, and snippets.

@jacksonpchen
Last active December 3, 2020 06:51
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 jacksonpchen/72936ba355d8228cd73bd4f25b0ca499 to your computer and use it in GitHub Desktop.
Save jacksonpchen/72936ba355d8228cd73bd4f25b0ca499 to your computer and use it in GitHub Desktop.
/*
AMPscript.com
https://ampscript.com/company-logo-in-gmail-using-promotions-tab/
*/
%%[
SET @JSONStart = Concat('<', 'script type="', 'application/ld+json"','>')
SET @JSONEnd = Concat('<','/','script','>')
]%%
%%=TreatAsContent(@JSONStart)=%%
[{
"@context": "https://schema.org/",
"@type": "Organization",
"logo": "ampscript.png"
},{
"@context": "https://schema.org/",
"@type": "DiscountOffer",
"description": "20% off",
"discountCode": "AMPSCRIPT",
"availabilityStarts": "2020-12-02T08:00:00-07:00",
"availabilityEnds": "2020-12-30T23:59:59-07:00"
},{
"@context": "https://schema.org/",
"@type": "PromotionCard",
"image": "https://ampscript.com/ampscript.png"
}]
%%=TreatAsContent(@JSONEnd)=%%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment