Last active
December 3, 2020 06:51
-
-
Save jacksonpchen/72936ba355d8228cd73bd4f25b0ca499 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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