company logo

Help center

Go to Userled
All collectionsDistribute Your ExperiencesHubSpotHubspot Marketing Email Templates

Hubspot Marketing Email Templates

Personalizing Marketing Emails with Dynamic Account Thumbnails and Clickable Links

This guide shows how to display a unique, clickable image thumbnail in a HubSpot marketing email, pulling the image URL and landing page URL from CRM properties.

info icon
The guide is property-name agnostic—replace placeholders like [Thumbnail Property Internal Name] with your actual property (e.g., if your property is "Userled Thumbnail," use userled_thumbnail or the HubSpot-generated token format).
info icon
This works for contact-level properties; adapt to company-level if needed (use {{company.[Property]}} instead of {{contact.[Property]}}).

Prerequisites

Property Setup:

- Create or verify two single-line text properties in HubSpot (Settings > Properties > Company/Contact properties):

- Thumbnail Property: Stores the direct, public HTTPS URL to a PNG/JPG image (e.g., http://assets.userled.io/511119b7-9571-4149-8937-4186667df44c/A1rSUKcUM.png?ts=1763661220).

- Landing Page Property: Stores the destination URL (e.g., https://yourdomain.com/account123/landing).

Sync from Userled into Hubspot:

In Userled campaign, under Distribute, you can sync to your above created or existing Userled Properties in Hubspot. Sync the Landing Page URL as well as the Thumbnail URL.

warning icon
Ensure you check the box "Include the protocol (https://) in the URL". This is required for the HTML block to work correctly.

Creating the Marketing Email Template:

Use a marketing email (Marketing > Email > Create email).

info icon
Ensure contacts are linked to companies—HubSpot uses the primary associated company for tokens.

Step 1: Insert the Clickable Image HTML

- In the email editor, add a Custom HTML module (drag-and-drop: sidebar > Custom HTML)

- Click the code view icon {} and insert this snippet where you want the image:

Remember to update the below property names to what you have in HubSpot

<a href="{{contact.YOUR_LANDING_PAGE_PROPERTY}}" target="_blank" rel="noopener">
  <img src="{{contact.YOUR_THUMBNAIL_PROPERTY}}" alt="Personalized Thumbnail" width="300" height="200" style="max-width: 100%; height: auto; border: 0; display: block;">
</a>

Customisation:

- Replace [YOUR_LANDING_PAGE_PROPERTY] with your property's token (e.g., {{contact.userled_landing_page_url}}). Check exact syntax via the personalisation token picker (toolbar icon > Company properties > search your property).

- Replace [YOUR_THUMBNAIL_PROPERTY] similarly (e.g., {{contact.userled_thumbnail}}).

- target="_blank" opens the link in a new tab; rel="noopener" improves security.

Optional:

  • Adjust the width and height for your thumbnail shown in the email: width="300" height="200"

Now save the module.

This creates a clickable image: clicking the thumbnail (unique per account) redirects to the account's landing page URL.

Test and Preview

- Preview: In the editor, go to Actions > Preview > Select specific contacts from different companies. Verify the image loads uniquely and the link points to the correct URL (hover to check href).

- Test Send: Actions > Send email preview to test contacts (one per company). Open in various inboxes (Gmail, Outlook)—enable "display images" if needed. Click the image to confirm it navigates correctly.

- Scale Test: Create a test list of 5-10 contacts across accounts, send a full test campaign, and review analytics for opens/clicks.

- Debug Common Issues:

  • Image not showing: URL invalid/public issue—test in incognito browser.

  • Link not working: Token unresolved (check associations) or relative URL (must be absolute HTTPS).

  • Blank tokens for test contact? Make sure these are populated

Best Practices

- Performance: Compress images (<50KB) and host centrally (HubSpot Files or CDN) to avoid spam filters/slow loads. Limit to 1-2 personalized images per email.

- Accessibility/Compliance: Use descriptive alt text (e.g., "Thumbnail for [Company Name]" via another token). Ensure links comply with CAN-SPAM/GDPR—include unsubscribe options.

Did this answer your question?
😞
😐
😁