Getting Started

How to add a widget to your email

Last updated

Every Sendtric widget comes with a short piece of HTML. Paste it into your email wherever you want the widget to appear. It works in any email platform that lets you add custom HTML, which is almost all of them.

Copy the code

  1. Open the widget in the dashboard and click Save. The code only appears once the widget is saved.
  2. Find the code box below the preview. Choose Align Left, Align Center or Align Right to set where the widget sits in your email.
  3. Click Copy Code.

You can also copy a widget's code from its list page: click the code icon in the widget's row.

A widget's HTML code box with the alignment buttons and the Copy Code button

Polls work a little differently: their code is a table of clickable answers. See how to create an email poll and add it to your email.

Paste it into your email

  1. In your email platform, add a custom HTML block (often called HTML, Code or Custom code) where you want the widget.
  2. Paste the code.
  3. If the code contains placeholders such as {{VARIABLE_NAME}}, {UNIQUE IDENTIFIER} or {UNIX TIMESTAMP}, replace them with your platform's merge tags. See how to use merge tags in Sendtric widgets.
  4. Send yourself a test email and check the widget shows as expected.

We have step-by-step guides for many platforms, including Klaviyo, Mailchimp, HubSpot, Braze, Iterable and Salesforce Marketing Cloud, on our integrations page.

Using Klaviyo, Mailchimp or HubSpot? Connect your account and push widgets straight to your platform instead of copying code. See how to push a widget to Klaviyo, Mailchimp or HubSpot.

Your email preview looks out of date?

Some email platforms cache images in their editor, so the preview can show an older version of your widget. It updates in the sent email. See widgets seem outdated in my email template preview.

Related

Was this article helpful?

Click the image to zoom in. Drag or scroll to look around.