Introduction
Welcome to this tutorial on how to troubleshoot issues utilizing Gmail’s Promotions Card object in Customer.io. This guide will examine a common error and its effective solution.
Google has added annotation support for emails that appear in the Promotions tab of the Gmail app. This means that your promotional emails have more opportunities to make an impression beyond the subject and preheader. You can highlight incentives, share key information from your message, and stand out in the crowded inbox.
Problem
While trying to integrate the promotions card object in our code editor, you might encounter an error message: 'The tag cannot be used.html(script-disabled)' if you are attempting to use the <script> tag in your HTML.
Solution
The email editors in Customer.io do not support scripts today. Who knows what the future may bring, but for now, we need to use a workaround. For this specific case, you can resort to Schema Microdata implementations which will work if CSS pre-processing is disabled in the code editor.
Alternatively, you could create a snippet of HTML (minus a <script> tag), and add this snippet as an element in our drag-and-drop editor.
Resources
Gmail Promotions Card doc (full tutorial and code for you to copy and paste)